YouTube2Text

Piscine C - Shell00 - Git — Transcript

by 42 E-learning · 1,055 words · 185 segments · language en · Watch on YouTube

Full transcript

  1. 0:06Hey.
  2. 0:07And welcome my little park champs to the
  3. 0:10second video of your very first machine
  4. 0:12project.
  5. 0:13Uh Shell00. I'm Marilyn. I'm 22 years
  6. 0:17old. Been a coder I'm since uh last
  7. 0:19October and I really like frogs among
  8. 0:22other things.
  9. 0:24Uh if you haven't seen uh last video, I
  10. 0:26recommend you watch that one first.
  11. 0:28Hopefully, you're a bit more comfortable
  12. 0:30uh using shell commands now. And in
  13. 0:32today's video, I'm going to try and
  14. 0:33teach you about Git.
  15. 0:35Um so, what is Git? It's basically a set
  16. 0:38of commands programmers can use to
  17. 0:39easily make backups of uh all of their
  18. 0:42code. In the industry, it's also used
  19. 0:44for a bunch of other things.
  20. 0:46Uh big one managing big projects where a
  21. 0:48bunch of people are working on the same
  22. 0:50code.
  23. 0:51Um but we're not going to talk about any
  24. 0:52of that. I'm going to keep it as simple
  25. 0:54as possible for this video and just show
  26. 0:57you what you need to know to be able to
  27. 0:59work on your projects. Um
  28. 1:01that being the case, if you see anything
  29. 1:03and you're curious about something, like
  30. 1:05why why do I need to do this or that, I
  31. 1:08do encourage you um if you have the time
  32. 1:11to look uh any of those things up.
  33. 1:14Um all right. Let's uh dive in, shall
  34. 1:17we?
  35. 1:19Um so, as you can see, I just registered
  36. 1:22for Shell00. If you haven't done that
  37. 1:25yet, I recommend you do the same.
  38. 1:27Um and then
  39. 1:29a little um Git repository will be
  40. 1:33generated for you.
  41. 1:35Uh after a minute or so.
  42. 1:38What is a repository? You can basically
  43. 1:40just see it as a little folder
  44. 1:42um
  45. 1:43for your project. So, what um
  46. 1:46what we're going to do, we're going to
  47. 1:47clone everything that's in that folder
  48. 1:49and then we can add stuff to it uh
  49. 1:52whatever we want and then we can sync
  50. 1:54all those changes back onto Git.
  51. 1:56Um so, the first thing you would usually
  52. 1:59do
  53. 2:00you would use Git clone
  54. 2:02then the link and if you would like you
  55. 2:05can even give it your own custom name.
  56. 2:09But for us right now it won't work quite
  57. 2:11yet.
  58. 2:12This is because we need the rights for
  59. 2:15it
  60. 2:16and how this works with 42
  61. 2:18is we need SSH key in our intra. It's
  62. 2:21just for safety reasons.
  63. 2:23Luckily I will show you how to do that
  64. 2:25too.
  65. 2:28We are going to use the command SSH
  66. 2:30keygen.
  67. 2:31And then we can just press enter three
  68. 2:33times.
  69. 2:34And then it will generate as you can see
  70. 2:38a couple of keys right here in our home
  71. 2:40folder.
  72. 2:41I'll show you what it looks like.
  73. 2:45.ssh
  74. 2:49And
  75. 2:52voila.
  76. 2:54Now you see two keys, two ideas. The
  77. 2:57normal one is your private key. You can
  78. 2:59see this as your PIN code or bank
  79. 3:01number. Basically what I'm trying to say
  80. 3:03that's something you shouldn't ever
  81. 3:04share.
  82. 3:05So for your own good please don't.
  83. 3:08And the other one the dot pub that's our
  84. 3:10public key key and luckily we can share
  85. 3:13that one with anyone that we want to
  86. 3:15allow to work on our projects.
  87. 3:20So we're going to cut this.
  88. 3:22And then if you don't know what that
  89. 3:23does it will show you all the contents
  90. 3:25of the file in this case the key.
  91. 3:28And then we're simply going to head over
  92. 3:29to intra
  93. 3:31into our settings.
  94. 3:35And then we're going to go
  95. 3:37to our key.
  96. 3:39I'll remove this one
  97. 3:41and make a new one
  98. 3:43right here.
  99. 3:45Voila.
  100. 3:48Let's call it
  101. 3:50cool key.
  102. 3:53Perfect.
  103. 3:58Um now we can go back.
  104. 4:02And we will I will make a little folder
  105. 4:03right here just just for now.
  106. 4:07Um video
  107. 4:11and in set directory, we can now
  108. 4:19use our Git clone.
  109. 4:25And it will work.
  110. 4:28We will
  111. 4:29go right into there.
  112. 4:31As you see, our fancy uh terminal font
  113. 4:34already shows that that it's a little
  114. 4:36Git repository.
  115. 4:38I don't have to worry if yours doesn't
  116. 4:40do that. It's just uh
  117. 4:42uh for clarity's sake. Ours already has
  118. 4:45a couple of files added,
  119. 4:47um but what I'm going to show you is if
  120. 4:49you want to make if you make more files
  121. 4:51or you're doing your programming work,
  122. 4:53whatever it is that you do,
  123. 4:55um
  124. 4:59and you add a file,
  125. 5:01uh and let's say you're done and you
  126. 5:03want to make a backup, um I'm going to
  127. 5:05show you how to do that, too.
  128. 5:07There's basically four steps to it
  129. 5:09um and four commands. The first one um
  130. 5:12that's good to know is Git status.
  131. 5:14This shows you um basically whatever
  132. 5:17files are there and which ones are
  133. 5:19tracked and which ones in that aren't.
  134. 5:22Uh so you can basically use it to keep
  135. 5:23track on if everything's up to order.
  136. 5:26The second one is Git add. In this case,
  137. 5:29we're going to add hi.
  138. 5:31You will also see if I use status again,
  139. 5:33you can see it's added to the track
  140. 5:35list.
  141. 5:36Our third one is Git commit.
  142. 5:39This is basically giving Git a little
  143. 5:41heads up that there are changes and that
  144. 5:43they've been made and they will soon be
  145. 5:45pushed.
  146. 5:46Um
  147. 5:47and we use a little {dash} m uh to make
  148. 5:50adding them
  149. 5:51to make adding the message a little
  150. 5:53easier.
  151. 5:54Um
  152. 5:56added hi.txt
  153. 5:59And it's good practice to um try to make
  154. 6:02whatever commit message you do
  155. 6:04indicative or
  156. 6:06um show what kind of changes you made.
  157. 6:08For the piscine, this doesn't really
  158. 6:09matter, but it's good to already sort of
  159. 6:11get used to it.
  160. 6:13Um perfect.
  161. 6:15And our last but not last but not least,
  162. 6:18our last command, get push,
  163. 6:22simply pushes all of the changes you
  164. 6:24made on your local computer onto
  165. 6:26whatever server or place um the Git
  166. 6:29repository is on.
  167. 6:31So, that's all perfect.
  168. 6:33Um and now if we would like,
  169. 6:36I can show you even that it worked.
  170. 6:39Let's make another
  171. 6:41um
  172. 6:42Let's clone another instance.
  173. 6:51Voila.
  174. 6:53And if we go into there,
  175. 6:55you can now see, as before, it already
  176. 6:57had two files in them, but our hi.txt is
  177. 7:00in there, too, now.
  178. 7:01Um so, yeah.
  179. 7:04This
  180. 7:05uh that's basically it for now.
  181. 7:07Um hope you learned. Hope it was uh
  182. 7:09understandable.
  183. 7:11And uh I wish you the best of luck on
  184. 7:13your piscine journey.
  185. 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.