Introduction to Git - Core Concepts

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • Introduction to Git - Core Concepts.
    Twitter: @davidmahler
    LinkedIn: / davidmahler
    References:
    Pro Git by Scott Chacon - git-scm.com/bo...
    Visual Git Reference by Mark Lodato - marklodato.git...
    Commands used in this video:
    git init - initialize a new repo in a directory
    git config --global user.name "name"
    git config --global user.email "email"
    (--local option as well)
    git status - see the state of files in working tree, staging area vs latest commit in git history
    git add - move file(s) to the staging area
    git log - view the git history / git commit graph
    git diff - diff of working tree and staging area
    git diff --cached - diff of staging area and latest commit
    git rm - remove a file from the working tree and the staging area
    git checkout -- filename - retrieve a file from the staging area into the working tree
    git reset HEAD filename - retrieve a file from the latest commit into the staging area
    git checkout (commit hash) filename - retrieve a file from a previous commit

Комментарии • 861

  • @AneesHameed
    @AneesHameed 5 лет назад +85

    This should be the first video for all "github tutorial" searches.

    • @DavidMahler
      @DavidMahler  5 лет назад +4

      Thanks!

    • @Nadzinator
      @Nadzinator 4 года назад +2

      Well said.

    • @Zerbasst
      @Zerbasst 3 года назад +3

      yeah, think so too. but what kinda annoys me is that it sounds like you say „get“ not „git“. :D

  • @yrebrac
    @yrebrac 3 года назад +44

    One of the best introductory git videos on YT. Explains fundamentals, not just "type this, then this"

    • @DavidMahler
      @DavidMahler  3 года назад +1

      Thank you! Ya I have trouble following that way too!

  • @ahme585
    @ahme585 5 лет назад +290

    Give that man a medal

  • @JasonFuller
    @JasonFuller 6 лет назад +52

    Commit == snapshot!!!! For some reason every other intro video skips this! It was a huge hole in my understanding. Thank you so much!

  • @purduetom90
    @purduetom90 7 лет назад +101

    One of the best intros i have ever seen

    • @DavidMahler
      @DavidMahler  7 лет назад +2

      Thanks, Tom that's very generous of you to say!

  • @alanclaudino6650
    @alanclaudino6650 8 месяцев назад +5

    I might be a bit late, but this is a great video so I had to leave a comment. It is by far the best one I've seen on Git, carefully explaining basic concepts while also making it practical. Excellent work, David! Thank you for sharing it with us.

    • @DavidMahler
      @DavidMahler  6 месяцев назад

      Thank you Alan! Never too late for feedback!

  • @lapidations
    @lapidations 6 лет назад +27

    You got that awesome "audiobook voice" that works really well with the video! Great introduction, thanks a lot!

  • @amadeuszannissimo1669
    @amadeuszannissimo1669 6 лет назад +72

    This is the first time I saw that git workflow graph, and I like how you keep referring back to it, showing how different git commands are reflected in the flow of information on the graph. It helped me to visualize what I am doing when I use git add and git commit.

    • @DavidMahler
      @DavidMahler  6 лет назад +25

      I had a pretty hard time with Git myself until I started thinking about it like in the diagrams, it has made (mostly) a lot more sense since then! Thanks for the comment!

  • @jackmaxwell3134
    @jackmaxwell3134 7 лет назад +101

    the best video on git that I've found! Thanks a lot for your hard work!

    • @DavidMahler
      @DavidMahler  7 лет назад +3

      Awesome! Thanks for that!

    • @JasonFuller
      @JasonFuller 6 лет назад +7

      Seriously, why doesn't this video come up first?

  • @robertivanov2833
    @robertivanov2833 2 года назад +4

    You don't just show and share your knowledge, but you also show that teaching is an art as well!!! Thank you!

    • @DavidMahler
      @DavidMahler  Год назад

      Thanks Robert! This comment means a lot to me, truly!

  • @ceciliocbaroperez8815
    @ceciliocbaroperez8815 Год назад +2

    Magnificent explanation. Thanks for sharing this material so well-structured and easy to follow!

  • @lumpyfishgravy
    @lumpyfishgravy Год назад +1

    Thanks for this. I'm a long-time SVN user migrating to Git and although I've used it in other teams, administering the migration process has me in a right pickle.
    Looking forward to the next two videos.

  • @abhishekrajeev1028
    @abhishekrajeev1028 2 года назад +1

    I've binge watching Git concept videos for the past 5 days. This is by far the best video of this topic !!

  • @ericmohler5609
    @ericmohler5609 3 года назад +3

    Excellent tutorial. The graphical representation of all three areas as you progress through a series of experiments is invaluable.
    Thank you.

  • @64_bit80
    @64_bit80 5 лет назад +15

    Best pacing I've seen in a Git tutorial. Helped me tremendously, thank you!

  • @matthewjamesdavison
    @matthewjamesdavison Год назад +2

    SO impressed by your thoroughness and clarity. You are very articulate and well spoken, the diagrams illustrate your talking points extremely well, it's not overly complicated, you highlight items on the screen that you are speaking to, and you revisit new ideas/concepts regularly - all of which are extremely helpful for new learners. This is fantastic!

    • @DavidMahler
      @DavidMahler  Год назад

      Thanks a lot for the feedback Matthew!

  • @heshammahmoud4557
    @heshammahmoud4557 Год назад +1

    This is by far the best introduction about Git.

  • @bmanishap
    @bmanishap 5 лет назад +18

    Very good video and thanks for all your efforts to put it together.

  • @thevagabond85yt
    @thevagabond85yt Год назад +2

    fast forward to 2023 :-
    18:49 : currently '$ git rm ' does two thing in following order (removal from tracked --> commit)
    19:50 : alternative to git checkout --S1 would be '$ git restore '
    22:14 : alternative to git reset HEAD S1 would be '$ git restore --staged'
    Now you can see a parallel b/w git diff & git diff --staged vis-a-vis git restore & git restore --staged

  • @lawrencetran4684
    @lawrencetran4684 Год назад

    Thanks a lot for your thorough explanation with the comparison between visualisation of diagrams and practical git examples

    • @DavidMahler
      @DavidMahler  Год назад

      You're very welcome, thanks Lawrence!

  • @r3jk8
    @r3jk8 5 дней назад

    Holy crap!! This is the best video on git I have ever seen. This video should be mandatory for all developers.

  • @EdwardSileo
    @EdwardSileo 3 года назад +1

    Excellent. I use Git every single day, but I'm at the point where I need a more thorough understanding. This is exactly what I need. Very nicely done.

    • @DavidMahler
      @DavidMahler  2 года назад

      Thanks a lot, I'm glad it was able to be of some assistance!

  • @iomrj
    @iomrj 6 лет назад +1

    Core Concepts explained in a very concise way. Crystal clear explanation. Thank you for your efforts in preparing this video. I found it very useful.

  • @asimssheikh
    @asimssheikh 2 года назад +4

    Thank you David for a clear and thorough introduction to the basic use cases of git. The best have I seen on youtube so far. The use of the diagrams really brought it home to me.

    • @DavidMahler
      @DavidMahler  2 года назад

      great, thanks for the comment!

  • @MalTimeTV
    @MalTimeTV 2 года назад +1

    This is simply the best git tutorial that anyone could ask for. Thank you.

  • @intermarer9145
    @intermarer9145 5 лет назад +3

    Man, I had to double check if I was watching some weird "get" command video :D That aside, excellent explanation! Git is something we all use, but I suspect many of us have just memorized certain commands to get to push, while not really understanding the underlying details of what's going on. Thanks for this!

    • @DavidMahler
      @DavidMahler  5 лет назад

      I know, it's the bane of my existence, thanks for the comment!!!

  • @aijaz4441
    @aijaz4441 4 года назад

    This video is so comprehensive. You are genius to explain the commands in such an easy way. kudos.

  • @baahubalii
    @baahubalii 2 года назад +1

    I've benefited from this video alot. I'm much more confident with Git now. Thank you so much. ❤️

  • @adic8993
    @adic8993 4 года назад +3

    This is the best explanation I've seen yet. Just amazing.

  • @popcorn7657
    @popcorn7657 2 года назад

    Fabulous. I am a visual learner so seeing graphs etc is very helpful for my understanding. Merci ☺️

  • @fayax
    @fayax 2 года назад +1

    Possibly the best tutorial for git so far...and yes I have watched quite a few. :)

  • @ShauKenshin
    @ShauKenshin 3 года назад

    Honestly ... the BEST INTRO to GIT that I have seen... PERIOD!!

  • @hp.ramesh
    @hp.ramesh 2 года назад +1

    git is a complex topic and looks like you have figured out the best way to teach it! I like the sequencing of concepts within and between your videos. Also, discovered Scott Chacon through you and it is big! Thank you David.

    • @DavidMahler
      @DavidMahler  Год назад +1

      Thanks Ramesh! Yes I learned most things form his work!

  • @dc33333
    @dc33333 2 года назад

    You are a gifted presenter David Mahler. Make more content please. Stunning. Reminds me of the documentaries I used to watch as a kid. Very well done.

    • @DavidMahler
      @DavidMahler  2 года назад

      Very cool, thanks for the message!

  • @SamoKod
    @SamoKod 9 месяцев назад +1

    This is the best way to explain things. Thanks for the lesson! Liked and Subscribed.

  • @davethepieman12
    @davethepieman12 3 года назад

    I'm a complete beginner at programming and Git. I had to watch this video about three times to fully get understand what was going on. But, I can say this is the best explanation of Git Bash I have found on the Internet! Thank you!

    • @DavidMahler
      @DavidMahler  3 года назад +1

      Thanks Dave!, Sincerely, Dave

  • @shalinisharma8122
    @shalinisharma8122 7 месяцев назад

    Resolved all my doubts about Git. Great work Sir. God bless you.

  • @kumardchowdary2291
    @kumardchowdary2291 3 года назад

    this the best teaching in internet about git topics .I just loved this . its very useful thank you keeping doing more
    its amazing teaching sir

  • @kennethyuman1940
    @kennethyuman1940 6 лет назад

    Simple, but not simpler. Clear both in content and voice. Excellent. Thanks, David.

  • @reaper_
    @reaper_ 4 года назад

    the simplest and best video that explain the concept and basics of Git

  • @sreeramch
    @sreeramch 6 лет назад

    How come anyone in the world would dislike this video...Simple and Best way to explain GIT..thanks David for making our lives easy...

    • @DavidMahler
      @DavidMahler  6 лет назад

      A leading cause could be b/c I keep saying "get" instead of "git" ;-). Thanks for continuing to support the videos / the channel Sreeram - it means a lot!

  • @mysterious_commenter3285
    @mysterious_commenter3285 Год назад

    I watched this video a couple years ago when i know little English and now I rewatch this again just to realised yours git video series is the best I've seen so far. I'd refer anyone to need to know git to here

    • @DavidMahler
      @DavidMahler  Год назад

      Thanks so much!

    • @mysterious_commenter3285
      @mysterious_commenter3285 Год назад

      @@DavidMahler I dont know what you circumstances are at the moment but I hope you make more video like this! your video quality is top notch. 100x better than professors at my uni!

    • @DavidMahler
      @DavidMahler  Год назад +1

      @@mysterious_commenter3285 Thanks a lot! I want to start them up again. It's hard with work and life!

  • @conodeen3588
    @conodeen3588 4 года назад +1

    This is my 3rd (or fourth) video on git basics! Finally it all makes sense. Wish I had seen this sooner. Given how much I’ve searched, I think this is the best git intro video for total beginners like me.

    • @DavidMahler
      @DavidMahler  4 года назад

      Thanks, glad it helped to clear things up!

  • @VishalVerma9dec
    @VishalVerma9dec 4 года назад

    Amazing tutorial in the easiest language ...... no head bounces (like in other videos) ..... waiting for next videos also ..... too good the visual git reference too

  • @whiteboycarl1234
    @whiteboycarl1234 3 года назад

    really great explanation. easy to understand by showing visuals after each command

  • @chesssoul5817
    @chesssoul5817 2 года назад

    Great vdio regarding the git. First the flow diagram then simple examples which are explained in the diagram. they way you make the vdio help me to understand the core concepts in just 30 mins. rly cool. Thank you for this.

  • @JamesFraley
    @JamesFraley 2 года назад

    This is a most excellent introduction to Git. Thank you for making it.

  • @davidcho4399
    @davidcho4399 4 года назад

    Thank you I needed this! I couldn't quite grasp git with all these random short videos online that don't really teach you anything. It really helps me actually learn git with you breaking everything down for us.

  • @SandeepVerma-gn3lw
    @SandeepVerma-gn3lw 5 лет назад +2

    This is the best lecture I have found on Git Intro. Thank You so much! for giving us the proper understanding of Git

  • @wittyhumour29
    @wittyhumour29 5 лет назад

    Incredible Explanation! Not just teaching Git Commands but Most Importantly teaching the Core Concepts. Hands down the best video on Git Fundamentals for an Absolute Beginner.

  • @haaskaiiitt
    @haaskaiiitt 2 года назад +1

    Saved my life, thank you for this excellent explanation!

  • @gadlabiod2072
    @gadlabiod2072 3 года назад

    This video is pure gold.
    The best git tutorial by a huge margin - clear concise and accurate.

  • @mohamedmusthafa6246
    @mohamedmusthafa6246 6 лет назад

    I have watched many videos perviously none of them has explained briefly as you did.. Thank you so much sir. I understood the basic concepts of GIT now because of you.. Thanks once again.

    • @DavidMahler
      @DavidMahler  6 лет назад

      Awesome, and you are very welcome!

  • @justinfarrell5042
    @justinfarrell5042 4 года назад +1

    Extremely helpful thanks david

  • @estebanmarin002
    @estebanmarin002 7 лет назад +10

    Great Video! Really liked it. Awesome way of introducing Git. Cheers.

    • @DavidMahler
      @DavidMahler  7 лет назад +1

      Thanks Esteban! I tried to do it in a way I would have preferred to learn it when I stumbled through learning it.

  • @dc33333
    @dc33333 6 лет назад

    what a great speaker!!! I thought this was a TTS application at first. No stuttering, no pauses; etc... perfect speech.

    • @DavidMahler
      @DavidMahler  6 лет назад

      Thanks, Doug! Uh oh, not too robotic I hope ;-).

  • @bezalely
    @bezalely 3 года назад

    it doesn't get any clearer than this video. Thanks David

  • @davezima4167
    @davezima4167 6 лет назад +3

    Excellent tutorial. You obviously have a talent for teaching technical subjects like git.

    • @DavidMahler
      @DavidMahler  6 лет назад +1

      Thank you, and what a great name, Daves unite!

  • @vijayvenkataraman
    @vijayvenkataraman 2 года назад

    Till now the best one i have seen on explaining the key concepts.

  • @shaharkl
    @shaharkl 6 лет назад

    After swooping through more than 10 GIT intro videos, and after full view of 3 of them , I finally found a good and thorough one. Best video. thanks David.

  • @Phantom-nb5li
    @Phantom-nb5li 5 лет назад +1

    Awesome intro to Git ! Covered all core topics, yet presented it beautifully, in a way that makes it difficult to forget core concepts.

  • @yogeshdhote1543
    @yogeshdhote1543 2 года назад

    First time I feel so clear about these concepts.. Awesome Sir !!!

  • @POWERTOKNOW
    @POWERTOKNOW 3 года назад

    Thanks David. This is the best video I have watched on GIT Intro. Other videos did not interest me in such a manner and always left me confused.

    • @DavidMahler
      @DavidMahler  3 года назад

      That is great to hear, thank you Prashant!

  • @tanmaybhayani
    @tanmaybhayani 4 года назад +1

    Amazing, Amazing, Amazing. I've been trying to understand git for such a long time, but none of the tutorials were good enough(until I found this video). This should definitely be the first video to come up on git tutorial.

  • @rounakghosh7177
    @rounakghosh7177 4 года назад

    This is the best way one could ever explain git. Crystal clear. Thanks a ton.

    • @DavidMahler
      @DavidMahler  4 года назад +1

      Quite welcome, thanks for commenting!

  • @user-qf7wx1cl9j
    @user-qf7wx1cl9j 6 месяцев назад

    I wish all topics were taught like this.

  • @nazmulhassanmasum1286
    @nazmulhassanmasum1286 4 года назад

    You are the man David. I don't have words to thank you. One of the best into I have ever seen. You are always to the point.

  • @davidbrown2806
    @davidbrown2806 4 года назад +1

    First time I have understood GIT after several other videos

  • @asubmani
    @asubmani 5 лет назад

    Every Git training I came across always seemed to be an introduction to someone who knows git! Thank you for making this excellent video that does not lie when it says "Core concepts". Truly grateful for this

  • @prasathj7436
    @prasathj7436 Год назад

    Amazing explanation of the Git Core Concepts. Thanks a lot.

  • @HarshadRiswadkar
    @HarshadRiswadkar 3 года назад

    Great Tutorial. You expalined Git terminology in very simple words and with example. I have been working on git for a couple of years but still strugging to understand the entire picture. Your video helped a lot.

    • @DavidMahler
      @DavidMahler  3 года назад

      "I have been working on git for a couple of years but still strugging to understand the entire picture" - me too ;-). Thanks!

  • @louisbouwer8454
    @louisbouwer8454 3 года назад

    Thank you for a great video. Appreciate that you always refer back to your diagram.

  • @kaungminkhant5767
    @kaungminkhant5767 4 года назад

    Deep fundamental explanation in simple way for beginner!

  • @sauravsharan
    @sauravsharan 4 года назад

    Thank you for making these videos. They're worth watching

  • @tenminutetokyo2643
    @tenminutetokyo2643 4 года назад

    Clear and straightforward. Excellent.

  • @priyaj9908
    @priyaj9908 3 года назад

    The Best video on RUclips. Understood well. The way you explained is awesome. Thank you so much for the video😊😊.

  • @shamax2201
    @shamax2201 6 лет назад +2

    At last, things are starting to make sense. Thanks for this well organized video.

    • @DavidMahler
      @DavidMahler  6 лет назад

      Awesome! I'm glad it helped you!

  • @adelabdellatif
    @adelabdellatif 3 года назад

    best video I saw on GIT introduction. Thank you very much

  • @rajasivagaminathan9828
    @rajasivagaminathan9828 5 лет назад +1

    Very nicely done. A tutorial cannot get any better than this. Thank you!

  • @Linux.Learner
    @Linux.Learner 7 лет назад +10

    Eloquent, you are. 2018, HUH! Meticulous Visionary you must be.Thnk you for this awesome tutorial. Please upload more of it, makin ur channel like one spot solution for the things you are maven at.

    • @DavidMahler
      @DavidMahler  7 лет назад +2

      Thanks! Ha, something like that ;-). I will!

  • @vishnuwebmaster9591
    @vishnuwebmaster9591 3 года назад

    This person should be given youtube's diamond play button

    • @DavidMahler
      @DavidMahler  3 года назад

      Ha thanks, I have to make way more videos for that to happen ;-).

  • @noiseeater
    @noiseeater 5 лет назад

    Probably the most neat IT video I've ever encounter to. Wish there were more on Linux or networking topics.

  • @rameen34
    @rameen34 3 года назад +1

    great video. simplified the git concept so clearly. thank you for the hard work you put in this.

  • @AlazTetik
    @AlazTetik 4 года назад

    Gives what you should know all about git, to the point. Thanks.

  • @MarnieAndrews
    @MarnieAndrews 5 лет назад

    Thank goodness! I tried several other Git intro videos that were just a fury of commands without any sort of of top down guidance. Fortunately I finally found your videos! I appreciated you working with a simple example and continuously going back to the diagram. Your pacing was great, too.

  • @DevendraSingh-pt1nv
    @DevendraSingh-pt1nv 5 лет назад +1

    This is the best lecture I have found. Thank You so much! for providing proper intro of Git

  • @tarrakis
    @tarrakis 3 года назад

    After a confusing (albeit free) 4.5 hour course on Udemy, I finally understood it all thanks to you. Thanks!

  • @7674Manish
    @7674Manish 4 года назад +1

    Best Git explanation ever. Thank you Dave

  • @vishnuwebmaster9591
    @vishnuwebmaster9591 3 года назад

    The best Git tutorial on the planet, Kudos David...

  • @cuinnet
    @cuinnet Год назад

    Best video about git so far I have seen. Thanks Dave.

  • @sukighataore8257
    @sukighataore8257 3 года назад

    Very well explained. Definitely the best of all videos on Git !!!!!!

  • @DigitalBayInc
    @DigitalBayInc 4 года назад

    After taking notes while watching your video, I realized you had them listed in the notes under the video so I double checked my notes and noticed you put "git diff --cached" to show difference of staging area and latest commit but in the video you used "git diff -staged". Just wanted to give you a heads up just in case someone just copies your notes without actually watching the video. Your videos are super helpful by the way, thanks for this!!

    • @DavidMahler
      @DavidMahler  3 года назад

      Oh, thanks, ya they do the same thing :-).

  • @KunalMukherjee3701
    @KunalMukherjee3701 6 лет назад

    Crystal clear explanation with no bullshit!

  • @TheHeadlets
    @TheHeadlets 5 лет назад

    Absolutely fantastic tutorial that has the quality of a paid course; but is free!
    Thanks for the great intro.

    • @DavidMahler
      @DavidMahler  5 лет назад

      Thanks, I'm honored you feel that way!

  • @Codality
    @Codality 3 года назад

    this video saved a month of study for git
    THX A LOTTT

  • @kafaayari
    @kafaayari 3 года назад

    Not only relevant for git, but one of the best technical tutorials on YT

  • @jovan_script
    @jovan_script 2 года назад

    Awesome job! This is the best git tutorial I've come across. Thanks!

  • @pritamaries
    @pritamaries 3 года назад

    Indeed, you deserve a medal David. I have been digging to understand core concepts & then I found this. Exceptional explanation !!! Than Q !!!

  • @yuwan694
    @yuwan694 3 года назад

    Excellent video! I shared this one with my kids who is learning git.

  • @InterestedInWePeople
    @InterestedInWePeople 4 года назад +1

    Perfect intro into the most essential features of Git. Concise and easy to understand, keep up the good work!