Git Tutorial for Beginners: Command-Line Fundamentals

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ก.ค. 2024
  • 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

ความคิดเห็น • 1.6K

  • @Wiikend
    @Wiikend 6 ปีที่แล้ว +1327

    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 ปีที่แล้ว +1

      thanks for the timestamp!

    • @ilustrado7291
      @ilustrado7291 5 ปีที่แล้ว

      Thank you, Adrian.

    • @Ste00I
      @Ste00I 5 ปีที่แล้ว

      Thank you!

    • @tetelim4428
      @tetelim4428 5 ปีที่แล้ว +1

      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 ปีที่แล้ว +148

    I watched this on May 12, 2020, and it's still the best video to learn how Git works.

  • @abhijeetbodas2001
    @abhijeetbodas2001 4 ปีที่แล้ว +54

    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 ปีที่แล้ว +77

    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.

  • @swingymcswing
    @swingymcswing 4 ปีที่แล้ว +21

    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!!

  • @xyla37
    @xyla37 5 ปีที่แล้ว +50

    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!

  • @raghuvarapadma2040
    @raghuvarapadma2040 4 ปีที่แล้ว +7

    Been viewing a lot of Git Tutorials lately, but this one is the best by far! Highly recommend for complete beginners!

  • @moloko121212
    @moloko121212 5 ปีที่แล้ว +4

    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 ปีที่แล้ว +410

    Best tutorial I've seen so far and I've been poking around for them for days now. Thank you Corey.

    • @coreyms
      @coreyms  7 ปีที่แล้ว +20

      You're welcome. Glad you enjoyed it!

    • @pengli1489
      @pengli1489 7 ปีที่แล้ว

      Great

  • @joshkindhart8059
    @joshkindhart8059 5 ปีที่แล้ว +4

    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.

  • @soheilsoltani713
    @soheilsoltani713 5 ปีที่แล้ว +7

    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!

  • @peterpetertorres
    @peterpetertorres 4 ปีที่แล้ว +4

    3+ years later this video is still super helpful. Thank you very much!

  • @Shubamakabra
    @Shubamakabra 6 ปีที่แล้ว +142

    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 ปีที่แล้ว +1

      @@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...

  • @donovanjames8656
    @donovanjames8656 5 ปีที่แล้ว +19

    This video completely saved me for the git section of my class. You are the man Corey. Keep em coming.

  • @ilustrado7291
    @ilustrado7291 5 ปีที่แล้ว +1

    Among the other TH-cam 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!

  • @paragbhalerao
    @paragbhalerao 2 ปีที่แล้ว +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!

  • @Badanoia
    @Badanoia 5 ปีที่แล้ว +3

    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.

  • @Rhythm-Of-Life
    @Rhythm-Of-Life 5 ปีที่แล้ว +29

    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

  • @luvaholic
    @luvaholic 5 ปีที่แล้ว +1

    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.

  • @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.

  • @idaho1002
    @idaho1002 3 ปีที่แล้ว +4

    For beginners, this is the best git tutorial you’ll find in TH-cam. Period.

  • @MinhNguyen-dy4lo
    @MinhNguyen-dy4lo 6 ปีที่แล้ว +4

    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! :)

  • @jehushaphat
    @jehushaphat 2 ปีที่แล้ว +1

    You're very thorough in your tutorials! Some of the other TH-cam tutors ignore certain crucial aspects in their explanations and leave viewers hanging, seemingly forgetting that they're mostly dealing with beginners.

  • @dragonfly-7
    @dragonfly-7 6 ปีที่แล้ว +2

    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 !

  • @LizardanNet
    @LizardanNet 9 ปีที่แล้ว +40

    Best Git tutorial video I've seen. Thanks!

  • @sudarsandm
    @sudarsandm 6 ปีที่แล้ว +3

    GIt on fast track. Watching your videos == reading 2 to 3 books. Thank you Corey.

  • @tomsummers5924
    @tomsummers5924 5 ปีที่แล้ว +1

    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 ปีที่แล้ว +3

    Extremely well made and detailed video! it explains all the basics of Git in a very simple and easily understandable manner. Thank you Corey!

  • @binoydeka3987
    @binoydeka3987 8 ปีที่แล้ว +28

    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 ปีที่แล้ว +1

      +binoy deka Thank you for the kind words!

  • @enockomondi6588
    @enockomondi6588 4 ปีที่แล้ว +3

    The 30 minutes video has build my confidence in working with Git. Thanks alot for this

  • @muralikpagolu
    @muralikpagolu 6 ปีที่แล้ว +2

    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 :)

  • @dineshdg87
    @dineshdg87 5 ปีที่แล้ว +1

    Best video in youtube to get a good understanding of all the necessary GIT commands. Clear and crisp explanation, Great job.

  • @donaldhillis2722
    @donaldhillis2722 5 ปีที่แล้ว +3

    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

  • @schriker17
    @schriker17 4 ปีที่แล้ว +4

    That is the best git video serires on TH-cam still in 2019! Great work, thank you so much!

  • @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.

  • @hamzahahmad1670
    @hamzahahmad1670 4 ปีที่แล้ว +1

    4 years later and this is still the best youtube video on the topic. Thank you

  • @BrandonsOnline
    @BrandonsOnline 5 ปีที่แล้ว +3

    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.

  • @jonathanvanheijzen365
    @jonathanvanheijzen365 5 ปีที่แล้ว +6

    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?

  • @kunalchanda4854
    @kunalchanda4854 5 ปีที่แล้ว +4

    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.

  • @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!

  • @CodingCommanders
    @CodingCommanders 6 ปีที่แล้ว +65

    Best git intro I've seen!

    • @coreyms
      @coreyms  6 ปีที่แล้ว +2

      Thanks!

  • @kywylabs147
    @kywylabs147 4 ปีที่แล้ว +690

    The Odin Project brought me here :)

    • @andydelange9588
      @andydelange9588 4 ปีที่แล้ว +17

      Yep, its been an awesome website so far.

    • @chan7191
      @chan7191 4 ปีที่แล้ว +8

      samee :D hows your journey with TOP been?

    • @andydelange9588
      @andydelange9588 4 ปีที่แล้ว +8

      @@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 ปีที่แล้ว +4

      Andrew De Lange thats great! Have fun :)

    • @helloworld-vq9gq
      @helloworld-vq9gq 4 ปีที่แล้ว +4

      @@chan7191 AWESOME

  • @learneverything3383
    @learneverything3383 5 ปีที่แล้ว +1

    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

  • @umasankar2602
    @umasankar2602 4 ปีที่แล้ว +2

    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

  • @huydong8774
    @huydong8774 5 ปีที่แล้ว +5

    Thank man, you 're the best instructor in my whole life :)

  • @kieranwoodward8181
    @kieranwoodward8181 6 ปีที่แล้ว +9

    This is the best tutorial for Git. Good job! +1 sub

  • @konarkmodi3799
    @konarkmodi3799 5 ปีที่แล้ว +1

    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.

  • @trapezoidxXx
    @trapezoidxXx 5 ปีที่แล้ว +1

    This is the most informative git tutorial I've watched so far! Thanks Corey.

  • @suyashgupta1180
    @suyashgupta1180 4 ปีที่แล้ว +7

    It has become a habit of mine to watch Corey's video in free time instead of Netflix.

  • @sambhavdutt
    @sambhavdutt 7 ปีที่แล้ว +11

    Thanks a million ! This was very detailed.

  • @rameshn6721
    @rameshn6721 ปีที่แล้ว +1

    I really like the narrative and depth of the details. For a beginner, this is much advanced and very clear. Thanks Corey.

  • @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 ปีที่แล้ว +13

    Just want to say that you are the man!!

  • @csingh1982
    @csingh1982 8 ปีที่แล้ว +6

    Very nice video, nice and simple to understand example. excellent job.. keep posting such videos..

  • @vijaysamanthapuri2303
    @vijaysamanthapuri2303 6 ปีที่แล้ว +1

    Perfect video to get started with Git. You have covered a lot in 30 minutes. Thank you very much for sharing your knowledge.

  • @prashanth9401
    @prashanth9401 4 ปีที่แล้ว +1

    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.

  • @BharatSingh-zk8lx
    @BharatSingh-zk8lx 5 ปีที่แล้ว +7

    I usually don't comment but THIS IS JUST AMAZINGGGGGGGGGGGGGGGGGG Tutorial. THANKS A LOT....................

  • @mostroenturno9150
    @mostroenturno9150 4 ปีที่แล้ว +18

    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?

  • @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.

  • @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.

  • @scientistga
    @scientistga 7 ปีที่แล้ว +10

    Many thanks for your help and time. This is a great tutorial. Good job!

  • @bentrally
    @bentrally 5 ปีที่แล้ว +4

    If our tutor shows us this in class instead of trying to explain it himself this would be so much easier

  • @alextamarit5381
    @alextamarit5381 4 ปีที่แล้ว +1

    Much appreciated for the effort compiling this easy to follow (yet comprehensive) tutorial.

  • @namecoelho2
    @namecoelho2 5 ปีที่แล้ว +2

    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

  • @ashf8960
    @ashf8960 5 ปีที่แล้ว +3

    Great voice for being an instructor

  • @congcongkx
    @congcongkx 8 ปีที่แล้ว +7

    Hi Corey, can we skip pushing branch to remote if we don't intend to share it with the others?

  • @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.

  • @kedarpandhare8522
    @kedarpandhare8522 6 ปีที่แล้ว +1

    Excellent tutorial. Cleared out most of my doubts regarding Git. Thank you for creating such an awesome tutorial.

  • @Blowyourspot747
    @Blowyourspot747 7 ปีที่แล้ว +6

    Wow!!! I love this guy! Please be my professor.

  • @martinlutherkingjr.5582
    @martinlutherkingjr.5582 4 ปีที่แล้ว +10

    6:04 How did you get out of/clear the user manual from terminal? Answer: press "q".

  • @ericmohler5609
    @ericmohler5609 4 ปีที่แล้ว +1

    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!

  • @masepehr3593
    @masepehr3593 4 ปีที่แล้ว +1

    You know what ? whenever i want to learn something in shortest time but highest quality, i search it in your channel !

  • @drezell47
    @drezell47 8 ปีที่แล้ว +3

    Excellent tutorial!

  • @VincentDania
    @VincentDania 5 ปีที่แล้ว +3

    Got here from The Odin Project. Thanks TOP

  • @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

  • @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

  • @ak8217220
    @ak8217220 7 ปีที่แล้ว +9

    This is one great rich content tutorial you made!!!! (Y) Thanks aloooot!!! :D

  • @frajaesdi
    @frajaesdi 4 ปีที่แล้ว +3

    Thank you from Colombia, the odin project has sent me here :)

  • @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!

  • @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 !!

  • @alexradu1921
    @alexradu1921 4 ปีที่แล้ว +32

    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

  • @salimuddinkhan9349
    @salimuddinkhan9349 5 ปีที่แล้ว +3

    very well explained...thank you :)

  • @hexemeister
    @hexemeister 6 ปีที่แล้ว +2

    Awesome! Best intro video on git ever! Loved mainly the workflow part!

  • @abilashr1958
    @abilashr1958 6 ปีที่แล้ว +1

    Amazing GIT intro, This is one of the best videos. Thank you so much Corey.

  • @shamanthakrishnakg1978
    @shamanthakrishnakg1978 5 ปีที่แล้ว +3

    I can't resist myself from paying the fees(this is not donating because you are the donor Corey!!).Thank you very much.

  • @LegitimateContent
    @LegitimateContent ปีที่แล้ว +3

    Best git tutorial on the Internet

  • @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!

  • @DomUnseen
    @DomUnseen 2 ปีที่แล้ว

    i have watched a 1.5 hrs lecture on Git from my university and i didn't get half of the information i got here and the few things the prof actually told us were explained in the most complicated and unnecessarily exhaustive way possible. thanks for your work man, it's truly appreciated.

  • @Thughes78
    @Thughes78 3 ปีที่แล้ว +35

    The Odin Project brought me here and as an actual NOOB, I am totally lost.

    • @marymad4203
      @marymad4203 3 ปีที่แล้ว +2

      You are lost in which part? You wanna help?

    • @marymad4203
      @marymad4203 3 ปีที่แล้ว +1

      I'm from The Odin Project and I'm learning Git for the first time too

    • @andikanakpan8436
      @andikanakpan8436 3 ปีที่แล้ว +1

      @@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?

  • @gregtuve1109
    @gregtuve1109 5 ปีที่แล้ว +3

    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%.

  • @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!

  • @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.

  • @TinkCSA
    @TinkCSA 6 ปีที่แล้ว +4

    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 ปีที่แล้ว +4

    My brain is so slow that I had to watch your video on 0.75 speed to fully grasp what you were saying.

  • @carlosavila4290
    @carlosavila4290 5 ปีที่แล้ว +1

    Undoubtely best Git video out there, very clear and straight to the point. Thank you so much.

  • @alvisebaggio2380
    @alvisebaggio2380 5 ปีที่แล้ว +8

    I get an error when I push my cloned repository ...
    remote: error: refusing to update checked out branch: refs/heads/master
    remote: error: By default, updating the current branch in a non-bare repository
    remote: is denied, because it will make the index and work tree inconsistent
    remote: with what you pushed, and will require 'git reset --hard' to match
    remote: the work tree to HEAD.
    remote:
    remote: You can set the 'receive.denyCurrentBranch' configuration variable
    remote: to 'ignore' or 'warn' in the remote repository to allow pushing into
    remote: its current branch; however, this is not recommended unless you
    remote: arranged to update its work tree to match what you pushed in some
    remote: other way.
    remote:
    remote: To squelch this message and still keep the default behaviour, set
    remote: 'receive.denyCurrentBranch' configuration variable to 'refuse'.
    To /home/alvise/clone1/../Git_test
    ! [remote rejected] master -> master (branch is currently checked out)
    error: failed to push some refs to '/home/alvise/clone1/../Git_test'
    Any idea?
    I even try git reset --hard
    Thanks a lot.....
    By the way awesome video...

    • @GuyMeiriPieQ
      @GuyMeiriPieQ 5 ปีที่แล้ว

      I got the same error too

    • @KkrDs97
      @KkrDs97 4 ปีที่แล้ว

      i got the same and could not resolve

    • @ericmohler5609
      @ericmohler5609 4 ปีที่แล้ว

      I'm guessing but it might be an artifact that for the sake of this tutorial we were messing with master branch on both the remote repo and and the clone repo. In general this is not good practice. Branching is a beast unto itself.
      This did the trick for me:
      "git config receive.denyCurrentBranch ignore" (case sensitive).

  • @AlexSmith-ov4pt
    @AlexSmith-ov4pt 4 ปีที่แล้ว +46

    I think I've officially hit the "wtf is going on" part of learning... Not sure I'm even learning anything, honestly.

    • @alenjose3903
      @alenjose3903 4 ปีที่แล้ว +4

      same here

    • @imbloodbath9908
      @imbloodbath9908 4 ปีที่แล้ว +2

      me 2

    • @alenjose3903
      @alenjose3903 4 ปีที่แล้ว

      Mash house ya that wud be great. Git makes no sense to me

    • @MrCmon113
      @MrCmon113 4 ปีที่แล้ว +4

      Likely because you guys haven't stumbled into the problems git solves.

    • @ConsuelaPlaysRS
      @ConsuelaPlaysRS 3 ปีที่แล้ว +7

      Sorry you feel this way! Learning this stuff, as with anything you're learning for the first time, can be frustrating. Hope me offering some advice isn't seen as presumptuous on my part. In the wild, git is used primarily on teams collaborating on code, but you can use it on your own personal projects to keep track of changes. If I were you, I'd try to start a small project - just something with a few lines of code - and then head over to GitHub. From there, create an account, set up a repository, and commit your code to that repository. Of course, you need to initialize your local repository and "connect" it to the remote one you've set up on GitHub as well. This tutorial gives you most of the tools to do that, but you'll also probably need to Google around a bit.

  • @JoelByrd1
    @JoelByrd1 4 ปีที่แล้ว +1

    Best Git basics tutorial I've been able to find online (video or text).

  • @koustavchanda3843
    @koustavchanda3843 5 ปีที่แล้ว +1

    The best video tutoial on Git Command line on youtube. Great teaching. thank you Corey :)

  • @rohanjain5103
    @rohanjain5103 8 ปีที่แล้ว +3

    5:19 - git config -list