Тёмный

Git Tutorial for Beginners: Command-Line Fundamentals 

Corey Schafer
Подписаться 1,3 млн
Просмотров 2,2 млн
50% 1

Git is the most popular version control system out there and for good reason. In this video, we'll go over the basics of what git is and how to use it within the command-line. There are several GUI tools out there to help you get started with git, but it can be extremely beneficial to learn git from the command-line as early as possible.
Some of the images used in this video are from the "Pro Git" book. These are licensed under creative-commons. You can find the book at:
git-scm.com/book/en/v2
✅ Support My Channel Through Patreon:
/ coreyms
✅ Become a Channel Member:
/ @coreyms
✅ One-Time Contribution Through PayPal:
goo.gl/649HFY
✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot
✅ Corey's Public Amazon Wishlist
a.co/inIyro1
✅ Equipment I Use and Books I Recommend:
www.amazon.com/shop/coreyschafer
▶️ You Can Find Me On:
My Website - coreyms.com/
My Second Channel - / coreymschafer
Facebook - / coreymschafer
Twitter - / coreymschafer
Instagram - / coreymschafer
#Git

Опубликовано:

 

24 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 1,6 тыс.   
@Wiikend
@Wiikend 6 лет назад
I would strongly advise to watch the whole video because it's a great source of information, but for those reviewing the content or looking for a specific concept, here's an overview: 0:00 - Introduction 1:31 - Distributed vs Central Version Control 3:17 - Installing Git 3:39 - First Time Setup 6:36 - Getting Started (Local repository) 10:41 - Git File Control 14:55 - Getting Started (Remote repository) 20:37 - Branching 27:38 - Faster Example 29:41 - Conclusion
@JR-yi5wb
@JR-yi5wb 5 лет назад
thanks for the timestamp!
@ilustrado7291
@ilustrado7291 5 лет назад
Thank you, Adrian.
@Ste00I
@Ste00I 5 лет назад
Thank you!
@tetelim4428
@tetelim4428 5 лет назад
Hi, how do u add those time-stamp links to your commit? Any doc?
@JoeTinnySpace
@JoeTinnySpace 5 лет назад
type it like usual@@tetelim4428
@loganinn3940
@loganinn3940 4 года назад
I watched this on May 12, 2020, and it's still the best video to learn how Git works.
@abhijeetbodas2001
@abhijeetbodas2001 4 года назад
With " learn X in Y minutes" kind of tutorials getting millions of views these days, its great to see this no-nonsense, content-first channel. Good job! Keep it up!
@theemartinimike
@theemartinimike 4 года назад
This was probably one of the most perfect tutorials of any technical subject that I have ever seen. So many tutorials make assumptions that they don't realise they are making and they skip things. This was perfect.
@Shubamakabra
@Shubamakabra 6 лет назад
Went into this a complete noob and came out 99% noob. Excellent video!!
@adamb3422
@adamb3422 4 года назад
magnus engø -(99% noob) **
@MrsCabecaderadio
@MrsCabecaderadio 4 года назад
I feel the same! still a lot to learn but more hopeful
@MrsCabecaderadio
@MrsCabecaderadio 4 года назад
@@swaraagsistla8641 he probably meant what he said. There is still a lot to learn and after watching the video I even think that 1% ain't that little...
@xyla37
@xyla37 5 лет назад
I have to say, your videos are so useful and you have such a good way of explaining and teaching different concepts, subjects and how to's. I have watched and used quite a few of your videos, and found them so helpful and educational. This channel is such a great resource for anyone trying learn more about any of the subjects you have videos about. Thank you for being such an educator and lifesaver!
@swingymcswing
@swingymcswing 4 года назад
I know it's been several years since these Git videos came out but I wanted to thank you for them, as they have made a big impact on my comfort level with Git for day-to-day development work in my team. I'm not afraid of Git anymore and I can use it with confidence. Great examples and your clear speaking voice made the material accessible for me. Thanks a bunch, Corey!!
@moloko121212
@moloko121212 5 лет назад
Best I have seen so far about git. Short and clean samples. Simultaneously I followed your steps and did on my own, and that is what I recommend to understand how that works. Don't only watch, instead watch and try on your own. Thank you Corey!
@mjc01
@mjc01 7 лет назад
Best tutorial I've seen so far and I've been poking around for them for days now. Thank you Corey.
@coreyms
@coreyms 7 лет назад
You're welcome. Glad you enjoyed it!
@pengli1489
@pengli1489 7 лет назад
Great
@soheilsoltani713
@soheilsoltani713 5 лет назад
No one before had explained me in a so clear and straightforward way what git is and how it works. Many thanks Corey, you're a great teacher. Your videos on Python have also been very useful for me, and I just hope you add some C++ tutorials too :) Thanks again!
@luvaholic
@luvaholic 5 лет назад
There are many tutorials out there but it's hard to find one that's to the point, relevant and easy to understand without too many frills and gimmicks. Well done.
@ilustrado7291
@ilustrado7291 5 лет назад
Among the other RU-vid videos in coding (series tutorials in particular), I found your content more engaging yet straight to the point. Your voice is also soothing and easy to follow; Like when I was watching your Python tutorials, I can anticipate what you "will do" next and then makes me feel like I actually "get it". That is a form of talent - the kind of empathy a great teacher has!
@Badanoia
@Badanoia 5 лет назад
Hello Corey, your tutorial is great! I have asked friends how to work with git and taken other tutorials, but this is by far the best I took! Thanks a lot.
@joshkindhart8059
@joshkindhart8059 5 лет назад
Thanks again Corey! This video was very helpful! There was a lot of information thrown out in this video. I was feeling overwhelmed at first, but after taking a break and giving my mind time to rest and absorb what I saw, I rewatched the video again and this time everything clicked! So for the viewers that watch this video, I would recommend watch it once, then take a break and rewatch it until it sinks in. This is a very valuable and powerful lesson.
@donovanjames8656
@donovanjames8656 5 лет назад
This video completely saved me for the git section of my class. You are the man Corey. Keep em coming.
@dragonfly-7
@dragonfly-7 6 лет назад
Here I'm repeating what I stated at the end of this series of videos: Corey, this series is awesome. It is a great stepstone into this topic ! The examples you had been chosing are of a very great value !
@raghuvarapadma2040
@raghuvarapadma2040 4 года назад
Been viewing a lot of Git Tutorials lately, but this one is the best by far! Highly recommend for complete beginners!
@peterpetertorres
@peterpetertorres 4 года назад
3+ years later this video is still super helpful. Thank you very much!
@ManpreetKaur-ve5gw
@ManpreetKaur-ve5gw 3 года назад
By far, the best tutorial on GIT. It's been months I've been trying to wrap my head around commands. This is the perfect tutorial to get anyone started.
@paragbhalerao
@paragbhalerao 2 года назад
As someone just entering the field of data engineering and version control being so new to me, this was, hands down the best video to explain the concepts. I tried reading some documentation online and watching other videos. But this was the easiest to digest. Thank you so much for putting this together. God bless!
@MinhNguyen-dy4lo
@MinhNguyen-dy4lo 6 лет назад
Such a nice and comprehensible tutorial. I've struggled quite a lot to understand how to use git. Thank you so much for your effort, Corey! :)
@Rhythm-Of-Life
@Rhythm-Of-Life 5 лет назад
This is the Best tutorial I've seen so far on Git.... Thank you !
@sali313
@sali313 3 года назад
exactly, i have seen tons of videos on youtube but none of them explained as good as this channel
@muralikpagolu
@muralikpagolu 6 лет назад
Got to say, you are a natural teacher. Very nice explanations, good pace, engaging and easy to follow. One of the best tutorials available on youtube!! Thank you so much :)
@tomsummers5924
@tomsummers5924 5 лет назад
Without question, the very best explanation and demo of command-line git that I've ever seen. I know that there are a lot more areas that are not covered here but, for a guy that's been in tech for over 20 years and is just learning how git works, this is fantastic! It's funny that everyone assumes that you know all about git and github. But if you don't, it can be confusing and exasperating. This tutorial is great!
@bhavyasharma9565
@bhavyasharma9565 5 лет назад
Extremely well made and detailed video! it explains all the basics of Git in a very simple and easily understandable manner. Thank you Corey!
@sudarsandm
@sudarsandm 6 лет назад
GIt on fast track. Watching your videos == reading 2 to 3 books. Thank you Corey.
@jehushaphat
@jehushaphat 2 года назад
You're very thorough in your tutorials! Some of the other RU-vid tutors ignore certain crucial aspects in their explanations and leave viewers hanging, seemingly forgetting that they're mostly dealing with beginners.
@dineshdg87
@dineshdg87 5 лет назад
Best video in youtube to get a good understanding of all the necessary GIT commands. Clear and crisp explanation, Great job.
@idaho1002
@idaho1002 3 года назад
For beginners, this is the best git tutorial you’ll find in RU-vid. Period.
@LizardanNet
@LizardanNet 9 лет назад
Best Git tutorial video I've seen. Thanks!
@learneverything3383
@learneverything3383 5 лет назад
I would be thankful to you , I entered the programming world by watching your video and I am improving day by day ,I am very much thankful to you.I have recommended your video to all my friends and they are enjoying your content.Thanks Corey
@thingsiplay
@thingsiplay Год назад
I decided to learn a bit more than the most basic operations in Git. And I am so glad that you covered this topic, as you never let me down. Thank you for doing these tutorials.
@enockomondi6588
@enockomondi6588 4 года назад
The 30 minutes video has build my confidence in working with Git. Thanks alot for this
@binoydeka3987
@binoydeka3987 8 лет назад
Best Video in simplified form. Please keep posting simple but powerful videos. This video shows that no. of views doesn't define the goodness of a video.
@coreyms
@coreyms 8 лет назад
+binoy deka Thank you for the kind words!
@kunalchanda4854
@kunalchanda4854 5 лет назад
Excellent to the point lecture. I recommend everyone this video as it covers all the necessary git commands with great explanation. Thank you so much.
@konarkmodi3799
@konarkmodi3799 5 лет назад
Thank you so much Corey for putting it all in simple words with proper practical understanding. Highly appreciate you take time in explaining technology and its tools to new bees like me.
@kywylabs147
@kywylabs147 4 года назад
The Odin Project brought me here :)
@andydelange9588
@andydelange9588 4 года назад
Yep, its been an awesome website so far.
@chan7191
@chan7191 4 года назад
samee :D hows your journey with TOP been?
@andydelange9588
@andydelange9588 4 года назад
@@chan7191 I'm using freecodecamp at the moment, Ill carry on with the Odin project, when I have a better foot into things.
@chan7191
@chan7191 4 года назад
Andrew De Lange thats great! Have fun :)
@helloworld-vq9gq
@helloworld-vq9gq 4 года назад
@@chan7191 AWESOME
@BrandonsOnline
@BrandonsOnline 5 лет назад
I have tons of knowledge when it comes to SVN, so how you presented this video to help me transition was beautiful. Well done, great presentation don't change a thing.
@vatssv3006
@vatssv3006 4 года назад
When I was looking for some tutorials on Git I didn't have to think twice before opening this video. That's where the quality of your tutorials are! Love your tuts!
@umasankar2602
@umasankar2602 4 года назад
Mr.Corey Schafer the way you teach and your voice always motivates me to learn python and keep moving. Thank you very much for all your content
@donaldhillis2722
@donaldhillis2722 5 лет назад
Great Video. I'm studying a paper on Software Engineering and Design and this video on GIT was more educational and of higher quality than 2 x 1 hour university lectures on the same topic. Thanks
@CodingCommanders
@CodingCommanders 6 лет назад
Best git intro I've seen!
@coreyms
@coreyms 6 лет назад
Thanks!
@rameshn6721
@rameshn6721 Год назад
I really like the narrative and depth of the details. For a beginner, this is much advanced and very clear. Thanks Corey.
@jasonavina8135
@jasonavina8135 2 года назад
i've been looking all over the internet for a great git command line tutorial and it was nowhere to be found on the git website or its linked videos, but i most certainly did find it here. THANKYOU. BEST, EASIEST TO UNDERSTAND GIT CL TUTORIAL ON THE WEB. Why is it so hard to find people who explain programming in regular words like you do? This is so useful.
@schriker17
@schriker17 4 года назад
That is the best git video serires on RU-vid still in 2019! Great work, thank you so much!
@huydong8774
@huydong8774 5 лет назад
Thank man, you 're the best instructor in my whole life :)
@vijaysamanthapuri2303
@vijaysamanthapuri2303 6 лет назад
Perfect video to get started with Git. You have covered a lot in 30 minutes. Thank you very much for sharing your knowledge.
@hshlom
@hshlom 3 года назад
Super video. There's so much, I had to watch it numerous times, stopping and starting while taking notes. The most useful thing is that you show the sequence of commands needed to perform a function.
@mostroenturno9150
@mostroenturno9150 4 года назад
Odin Project brought me here. Even 5 years this video is still relevant and game changer for git noobs like me. Thanks for sharing your expertise. Ps: What's the service you are using to show slides? Is it selfhosted?
@suyashgupta1180
@suyashgupta1180 4 года назад
It has become a habit of mine to watch Corey's video in free time instead of Netflix.
@hamzahahmad1670
@hamzahahmad1670 4 года назад
4 years later and this is still the best youtube video on the topic. Thank you
@prashanth9401
@prashanth9401 4 года назад
Dude, to be honest this is the best video that explained the concepts very clearly. I was having hard time to understand the git and how to work with it. But this tutorial made things clear for me. Thanks a lot for this.
@csingh1982
@csingh1982 8 лет назад
Very nice video, nice and simple to understand example. excellent job.. keep posting such videos..
@kieranwoodward8181
@kieranwoodward8181 6 лет назад
This is the best tutorial for Git. Good job! +1 sub
@josemanuelvialopez1488
@josemanuelvialopez1488 3 года назад
I'm from The Odin Project starting my programming learning journey, i speak spanish and i could completely understand all you said also could grasp every idea in every step. Thank you very much for this amazing video
@scottwilliams3498
@scottwilliams3498 3 года назад
I rarely, RARELY, comment on videos; even ones I enjoy. But this tutorial has made the git workflow so easy to understand that I have to let Corey know how much I appreciate him putting this together. Thanks again!
@haluskua1947
@haluskua1947 5 лет назад
Just want to say that you are the man!!
@jonathanvanheijzen365
@jonathanvanheijzen365 5 лет назад
Spent 3 months trying to get git installed properly and ended up giving up. Watched this 30 minute tutorial and now it is set up properly. Who knew?
@ericmohler5609
@ericmohler5609 4 года назад
Excellent Tutorial. Super helpful to start the student with remote then clone it, and then watch how mods on cloned repo interact with the remote. Most teachers make huge assumptions and leave the student in the dust within five minutes. You don't gloss over stuff when you teach. Thanks very much!
@alextamarit5381
@alextamarit5381 4 года назад
Much appreciated for the effort compiling this easy to follow (yet comprehensive) tutorial.
@BharatSingh-zk8lx
@BharatSingh-zk8lx 5 лет назад
I usually don't comment but THIS IS JUST AMAZINGGGGGGGGGGGGGGGGGG Tutorial. THANKS A LOT....................
@sambhavdutt
@sambhavdutt 7 лет назад
Thanks a million ! This was very detailed.
@malakkataie7226
@malakkataie7226 4 года назад
I rarely leave comments on any youtube videos but this one really deserves a comment : THIS IS THE MOST AMAZING/USEFUL/WELL EXPLAINED TUTORIAL OF GIT!!! I had my notebook with me while he was explaining and I started the video having no idea of how to work with git and now I feel like it is way easier than I thought when I started using the command line just knowing the commands by heart and not understanding anything. BIG BIG THANKS !!
@kedarpandhare8522
@kedarpandhare8522 6 лет назад
Excellent tutorial. Cleared out most of my doubts regarding Git. Thank you for creating such an awesome tutorial.
@ashf8960
@ashf8960 5 лет назад
Great voice for being an instructor
@scientistga
@scientistga 7 лет назад
Many thanks for your help and time. This is a great tutorial. Good job!
@tigerfanxiao
@tigerfanxiao 2 года назад
I have seen a lot of git tutorials. But only this one is the best with the real workflow. Thank you a lot. I hope there is some new video from you.
@trapezoidxXx
@trapezoidxXx 5 лет назад
This is the most informative git tutorial I've watched so far! Thanks Corey.
@Blowyourspot747
@Blowyourspot747 7 лет назад
Wow!!! I love this guy! Please be my professor.
@bentrally
@bentrally 5 лет назад
If our tutor shows us this in class instead of trying to explain it himself this would be so much easier
@al-farabinagashbayev5403
@al-farabinagashbayev5403 4 года назад
thank you! two hours ago I was desparate about one project on my work! but after your tutorial I was able to properly commit everything that I wanted! Bravo!
@jasonritter8302
@jasonritter8302 3 года назад
The Odin Project brought me here. I absolutely loved this video and will recommend to anyone overwhelmed by the idea of using git (especially using command line). I've avoided learning git for so long because I didn't realize how efficient it actually is. This video explained it extremely well and I feel much better about git. I'm excited to start using it for real. Thank you Corey!
@martinlutherkingjr.5582
@martinlutherkingjr.5582 4 года назад
6:04 How did you get out of/clear the user manual from terminal? Answer: press "q".
@frajaesdi
@frajaesdi 4 года назад
Thank you from Colombia, the odin project has sent me here :)
@saquibali2513
@saquibali2513 4 года назад
me too :)
@andreasjanzen8823
@andreasjanzen8823 3 года назад
I have read and watched some material on git already, but this was the first time, the stageing process was explained properly. Thanks!
@VincentDania
@VincentDania 5 лет назад
Got here from The Odin Project. Thanks TOP
@gregtuve1109
@gregtuve1109 5 лет назад
Wow. This is so abstract from the perspective of a rookie, and yet, so clear. Why? Corey uses the simplest possible examples at every step, has code ready to change, makes the simplest possible changes, explains everything he is doing, often before he does it and again after he does it. He does not race through everything, hoping to show us how fast or easy some system is or how clever he is. It's so clear, I was able to deduce some properties of git that he didn't even tackle in his exposition. I absolutely agree with Adrian Wilk: Go through the entire video even if you plan to work with git only locally. No matter what you're doing, take the time to study every video CS makes that has any bearing on your goals. NOBODY DOES IT BETTER. Theres no FOO or BAR here. Instead he names the remote repository "origin" to clarify git's checkout and push commands, showing file changes at every step with appropriate commands. Most of the explanatory video on the web is too basic for me now. Why? BECAUSE OF COREY SHAFER. Good morning Corey! I sure could use a video on using slightly advanced query objects in Django to work with related tables. I'm raising your monthly stipend 50%.
@namecoelho2
@namecoelho2 5 лет назад
This is a great tutorial video, the best Git one I ever saw. Congrats to you Corey! I could finally understand what I was doing wrong
@Jake00001
@Jake00001 4 года назад
Your videos are extremely useful. I started learning Python recently and I have grown to appreciate what you teach. Thank you so much!
@alexradu1921
@alexradu1921 4 года назад
So I've taken some notes for the last "fast example" of the video (the one that concludes all the commands). So, here is the workflow you will repeat forever from now on: git config --global user.name git config --global user.email git clone git branch my_new_branch git checkout my_new_branch (make changes to the code) git status git commit -m "Add @function in file7" git push -u origin my_new_branch (wait for unit tests to complete) (if all unit tests pass, then do these) git checkout master git pull origin master git merge my_new_branch git push origin master (now time to delete my_new_branch) git branch -d my_new_branch git branch -a git push origin --delete my_new_branch
@shamanthakrishnakg1978
@shamanthakrishnakg1978 5 лет назад
I can't resist myself from paying the fees(this is not donating because you are the donor Corey!!).Thank you very much.
@gfodale
@gfodale 6 лет назад
Thanks to you, I am now on GitHub successfully. Took many times through the video, but no other video made the process clear enough for me tackle it. I'm starting to teach the nieces a few things in electronics and microprocessors. This is going to help greatly on the programming end. Much appreciated.
@sangeeth49
@sangeeth49 5 лет назад
Very good git tutorial. As a beginner, I benefited a lot from the clear, concise and logical explanation of the git workflow presented in this video!
@drezell47
@drezell47 8 лет назад
Excellent tutorial!
@LegitimateContent
@LegitimateContent Год назад
Best git tutorial on the Internet
@astrobiological7058
@astrobiological7058 Год назад
is it still up to date? thanks.
@sidarjunful
@sidarjunful 4 года назад
I wasn't getting it at first but watched this video 2nd and then the 3rd time after practicing and failing a bunch of times and now it has started to make sense. thank you.
@ramsunku3900
@ramsunku3900 4 года назад
Just amazing . May be I am falling in love with your way of teaching . I thought I have learned these basics in bits and pieces with the stackoverflow e.t.c but no I learned them after seeing this video . You're the best Corey . You fail to disappoint the beginners like me :)
@ak8217220
@ak8217220 7 лет назад
This is one great rich content tutorial you made!!!! (Y) Thanks aloooot!!! :D
@congcongkx
@congcongkx 8 лет назад
Hi Corey, can we skip pushing branch to remote if we don't intend to share it with the others?
@carlosavila4290
@carlosavila4290 5 лет назад
Undoubtely best Git video out there, very clear and straight to the point. Thank you so much.
@jaxzhang5002
@jaxzhang5002 3 года назад
Great explanation. I’ve been confused for so long just not ingraining it and halfway through the video something just clicked and the process started to make sense
@salimuddinkhan9349
@salimuddinkhan9349 5 лет назад
very well explained...thank you :)
@Thughes78
@Thughes78 3 года назад
The Odin Project brought me here and as an actual NOOB, I am totally lost.
@marymad4203
@marymad4203 3 года назад
You are lost in which part? You wanna help?
@marymad4203
@marymad4203 3 года назад
I'm from The Odin Project and I'm learning Git for the first time too
@andikanakpan8436
@andikanakpan8436 3 года назад
@@marymad4203 me too, i got so lost, i cant seem to find the .gitignore or after touching it, also hard to follow the steps without actually doing it as he speaks
@marymad4203
@marymad4203 3 года назад
@@andikanakpan8436 I know, it happens sometimes, is normal. You can focus on git init, clone, status, add and commit for now, just to familiarize with git workflow. And the others commands you can learn after you learn these above. I hope it helps you :)
@JulianPotts3396
@JulianPotts3396 3 года назад
Im stuck on this part as well. Would anyone like to connect on discord and work together?
@JoelByrd1
@JoelByrd1 4 года назад
Best Git basics tutorial I've been able to find online (video or text).
@fuahuahuatime5196
@fuahuahuatime5196 6 лет назад
Thanks dude, this video really helped out. Git (and github) was giving me so much headaches. You figure something like this would have simple, straightforward way to just push a local repository to a remote one. Every single "solution" I found online was convoluted with little to no explanation, just "type this command". I can imagine they themselves didn't have a clue what they were doing either. It's nice to see someone who understands the technology well and can explain it simply. Thanks!
@TinkCSA
@TinkCSA 6 лет назад
fk it! Time to binge watch you entire channel. Hope you become a prof someday... those are some pretty great teaching skills you got there
@s.akhtarjoomun263
@s.akhtarjoomun263 3 года назад
My brain is so slow that I had to watch your video on 0.75 speed to fully grasp what you were saying.
@kavitha-99
@kavitha-99 3 года назад
Hi Corey, Awesome in explaining the contents from scratch. No one can beat you. Thanks, Corey!!!
@saltyowl3229
@saltyowl3229 4 года назад
This was real useful! I’ve been having trouble learning git for a community project and this worked really well!
@rohanjain5103
@rohanjain5103 8 лет назад
5:19 - git config -list