Piscine C - Shell00 - Git — Transcript
Full transcript
- 0:06Hey.
- 0:07And welcome my little park champs to the
- 0:10second video of your very first machine
- 0:12project.
- 0:13Uh Shell00. I'm Marilyn. I'm 22 years
- 0:17old. Been a coder I'm since uh last
- 0:19October and I really like frogs among
- 0:22other things.
- 0:24Uh if you haven't seen uh last video, I
- 0:26recommend you watch that one first.
- 0:28Hopefully, you're a bit more comfortable
- 0:30uh using shell commands now. And in
- 0:32today's video, I'm going to try and
- 0:33teach you about Git.
- 0:35Um so, what is Git? It's basically a set
- 0:38of commands programmers can use to
- 0:39easily make backups of uh all of their
- 0:42code. In the industry, it's also used
- 0:44for a bunch of other things.
- 0:46Uh big one managing big projects where a
- 0:48bunch of people are working on the same
- 0:50code.
- 0:51Um but we're not going to talk about any
- 0:52of that. I'm going to keep it as simple
- 0:54as possible for this video and just show
- 0:57you what you need to know to be able to
- 0:59work on your projects. Um
- 1:01that being the case, if you see anything
- 1:03and you're curious about something, like
- 1:05why why do I need to do this or that, I
- 1:08do encourage you um if you have the time
- 1:11to look uh any of those things up.
- 1:14Um all right. Let's uh dive in, shall
- 1:17we?
- 1:19Um so, as you can see, I just registered
- 1:22for Shell00. If you haven't done that
- 1:25yet, I recommend you do the same.
- 1:27Um and then
- 1:29a little um Git repository will be
- 1:33generated for you.
- 1:35Uh after a minute or so.
- 1:38What is a repository? You can basically
- 1:40just see it as a little folder
- 1:42um
- 1:43for your project. So, what um
- 1:46what we're going to do, we're going to
- 1:47clone everything that's in that folder
- 1:49and then we can add stuff to it uh
- 1:52whatever we want and then we can sync
- 1:54all those changes back onto Git.
- 1:56Um so, the first thing you would usually
- 1:59do
- 2:00you would use Git clone
- 2:02then the link and if you would like you
- 2:05can even give it your own custom name.
- 2:09But for us right now it won't work quite
- 2:11yet.
- 2:12This is because we need the rights for
- 2:15it
- 2:16and how this works with 42
- 2:18is we need SSH key in our intra. It's
- 2:21just for safety reasons.
- 2:23Luckily I will show you how to do that
- 2:25too.
- 2:28We are going to use the command SSH
- 2:30keygen.
- 2:31And then we can just press enter three
- 2:33times.
- 2:34And then it will generate as you can see
- 2:38a couple of keys right here in our home
- 2:40folder.
- 2:41I'll show you what it looks like.
- 2:45.ssh
- 2:49And
- 2:52voila.
- 2:54Now you see two keys, two ideas. The
- 2:57normal one is your private key. You can
- 2:59see this as your PIN code or bank
- 3:01number. Basically what I'm trying to say
- 3:03that's something you shouldn't ever
- 3:04share.
- 3:05So for your own good please don't.
- 3:08And the other one the dot pub that's our
- 3:10public key key and luckily we can share
- 3:13that one with anyone that we want to
- 3:15allow to work on our projects.
- 3:20So we're going to cut this.
- 3:22And then if you don't know what that
- 3:23does it will show you all the contents
- 3:25of the file in this case the key.
- 3:28And then we're simply going to head over
- 3:29to intra
- 3:31into our settings.
- 3:35And then we're going to go
- 3:37to our key.
- 3:39I'll remove this one
- 3:41and make a new one
- 3:43right here.
- 3:45Voila.
- 3:48Let's call it
- 3:50cool key.
- 3:53Perfect.
- 3:58Um now we can go back.
- 4:02And we will I will make a little folder
- 4:03right here just just for now.
- 4:07Um video
- 4:11and in set directory, we can now
- 4:19use our Git clone.
- 4:25And it will work.
- 4:28We will
- 4:29go right into there.
- 4:31As you see, our fancy uh terminal font
- 4:34already shows that that it's a little
- 4:36Git repository.
- 4:38I don't have to worry if yours doesn't
- 4:40do that. It's just uh
- 4:42uh for clarity's sake. Ours already has
- 4:45a couple of files added,
- 4:47um but what I'm going to show you is if
- 4:49you want to make if you make more files
- 4:51or you're doing your programming work,
- 4:53whatever it is that you do,
- 4:55um
- 4:59and you add a file,
- 5:01uh and let's say you're done and you
- 5:03want to make a backup, um I'm going to
- 5:05show you how to do that, too.
- 5:07There's basically four steps to it
- 5:09um and four commands. The first one um
- 5:12that's good to know is Git status.
- 5:14This shows you um basically whatever
- 5:17files are there and which ones are
- 5:19tracked and which ones in that aren't.
- 5:22Uh so you can basically use it to keep
- 5:23track on if everything's up to order.
- 5:26The second one is Git add. In this case,
- 5:29we're going to add hi.
- 5:31You will also see if I use status again,
- 5:33you can see it's added to the track
- 5:35list.
- 5:36Our third one is Git commit.
- 5:39This is basically giving Git a little
- 5:41heads up that there are changes and that
- 5:43they've been made and they will soon be
- 5:45pushed.
- 5:46Um
- 5:47and we use a little {dash} m uh to make
- 5:50adding them
- 5:51to make adding the message a little
- 5:53easier.
- 5:54Um
- 5:56added hi.txt
- 5:59And it's good practice to um try to make
- 6:02whatever commit message you do
- 6:04indicative or
- 6:06um show what kind of changes you made.
- 6:08For the piscine, this doesn't really
- 6:09matter, but it's good to already sort of
- 6:11get used to it.
- 6:13Um perfect.
- 6:15And our last but not last but not least,
- 6:18our last command, get push,
- 6:22simply pushes all of the changes you
- 6:24made on your local computer onto
- 6:26whatever server or place um the Git
- 6:29repository is on.
- 6:31So, that's all perfect.
- 6:33Um and now if we would like,
- 6:36I can show you even that it worked.
- 6:39Let's make another
- 6:41um
- 6:42Let's clone another instance.
- 6:51Voila.
- 6:53And if we go into there,
- 6:55you can now see, as before, it already
- 6:57had two files in them, but our hi.txt is
- 7:00in there, too, now.
- 7:01Um so, yeah.
- 7:04This
- 7:05uh that's basically it for now.
- 7:07Um hope you learned. Hope it was uh
- 7:09understandable.
- 7:11And uh I wish you the best of luck on
- 7:13your piscine journey.
- 7:15Ciao.
About this transcript
This page contains the full transcript of Piscine C - Shell00 - Git by 42 E-learning, generated from the public captions YouTube serves with the video. The transcript has 1,055 words across 185 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.