Introduction to Git - Branching and Merging

Поделиться
HTML-код
  • Опубликовано: 5 сен 2024

Комментарии • 1,1 тыс.

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

    Not only is this a great instructional video, but David uses a solid pedagogical approach: he tells you what he's going to tell you, he tells you, then he tells you what he just told you.

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

      Thanks for noticing ;-).

    • @henrynwosu6277
      @henrynwosu6277 8 месяцев назад

      Very true. Said what was in my mind. The fact that he keeps track of all the information for you shows how empathic he is. Leaves no room for ambiguity. No room for confusion. ❤❤❤
      Thanks @DavidMahler
      Thanks alot.

  • @ruixue6955
    @ruixue6955 4 года назад +113

    00:59 start a new git repo
    1:46 git commit -m "create S1"
    2:08 git commit -m "create S2"
    2:13 git log
    2:35 what is branch
    3:02 how is branch implemented
    3:14 every *commit* has a *40 hex decimal sha-1 hash*
    3:26 a *branch* is just a *pointer* toa sha-1 hash
    3:43 the way git knows which *branch* we are on is a speical pointer called *HEAD*
    3:49 *HEAD*
    4:05 in git termonology, the *HEAD* pointer tells what we have *checkout*
    4:27 git log --all --decorate --oneline --graph
    4:30 when run this, we see the *commit graph*
    5:05 create new branches
    6:03 checkout and work on branches
    6:12 git checkout SDN
    7:04 demo
    9:18 git commit -a -m "message"
    9:21 -a option will stage and commit any tracked files that has been modified
    9:49 9:53 integrate changes back into master
    10:08 fast-forward merge
    10:54 demo
    11:04 *git diff master..SDN*
    11:20 git merge SDN

  • @TuNguyen-ox5lt
    @TuNguyen-ox5lt 6 лет назад +271

    extremely great explanation and graph illustration . really easy to understand more than any tutorials about git I found .

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

      Thanks so much!

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

      I had exactly the same experience. Inferior explanations all over the web. This video tutorial takes longer than reading through stuff, but it's a surefire way to understand. Only direct P2P tutoring trumps David's video

    • @deepwaterDW
      @deepwaterDW 4 года назад +4

      I watched 2 entire git tutorials, couldn't understand them untli I watched this video. Props to this guy.

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

      the best tutorial i have till now

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

      Same here !

  • @rahulagrawal5074
    @rahulagrawal5074 3 года назад +2

    It's so awesome.. This video is packed with information . It's like 3hrs content in just 29 mins and you will still understand everything

  • @dpskane
    @dpskane 5 лет назад +35

    Best git tutorial I encountered so far. For some surely too fast, for others too slow, but for most *beginners* it's surely perfect

  • @luis_moura
    @luis_moura 4 года назад +14

    Finally a great tutorial with "real life" meaningful examples. Thank you sir!

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

      Thanks for the comment Luis!

  • @AkshuGotuDance
    @AkshuGotuDance 2 года назад +9

    Awesome to the point. Better than 2 hours of Udemy videos and this one is completely free. God bless you.

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

      lol, thanks a lot for taking the time to comment!

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

    One of the best git branching/merging fundamentals I've seen

  • @vfxmaster7596
    @vfxmaster7596 4 года назад +5

    others Git tutorials are not even close to this one.this is a masterpiece. i always had problem with git understanding and now i just love to use git professionally.Thx man

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

      That is great to hear that it helped you - thanks for the comment!

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

    One of the clearest git explanation I have seen and it is very detailed. I would recommend this to the people I know who wishes to learn git.

  • @edkok5880
    @edkok5880 6 лет назад +51

    Best git tutorial I have seen. Although sometimes a little fast. Looking forward to the next one. Thanks for your work.

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

      Thanks Ed, yes I've heard that a couple of times, I'll take it into consideration in future series.

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

      On the video, you can go to "settings" and "playback speed" and reduce the speed to your desired outcome.

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

      @@DavidMahler please don't. It's preferred more knowledge in less time. That's the pause bottom for, so people can play it again and again. Your teaching was on spot.

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

    This video is far better than other tutorials where they just tell you commands and move forward. Language used is pretty simple and easy to understand.

  • @spiros1994
    @spiros1994 5 лет назад +5

    Perfect explanation! I usually apply fast forward to the videos I see on youtube but this video has the right speed and also covers the topics perfectly.
    Thank you for your work

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

      You're welcome, thanks for the comments!

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

    Demonstrating what you're going to do with the graphical solution, then after; explaining it using the commandline is like the perfect method for teaching this subject.

  • @boblittle2529
    @boblittle2529 4 года назад +8

    Well finally! This is the first tutorial I've watched about git branch where I've actually understood what "detached head" means. More importantly, I finally got a clue as to how to resolve it. BTW: Presentation speed may be a little quick but personally, I'm ok with that; "pause" and "rewind" work pretty well.

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

    I love how he puts a quick review at the end. Very Concise. Very Understandable. Very Helpful.

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

    Cuts straight to the chase, kudos to you!

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

    This is like a video you'd see made by the government for the standard way to do something. Informative, to the point, and clean.

  • @richt8183
    @richt8183 3 года назад +5

    This is a great tutorial. The visuals are excellent. I really “git” it now!

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

    This is THE BEST GIT TUTORIAL on the ENTIRE web. And let's also apreciate the fact that is free guys.

  • @KempoSensei
    @KempoSensei 7 лет назад +41

    Just what I’ve been looking for. Thanks.

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

    Before I watched this video, "detached head" message struck terror in my heart, but no more. Many other points of confusion and frustration have been resolved.

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

    One of the best GIT tutorials..Simple and to the point...thanks a lot David

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

    Fantastic tutorials. Simple, straight forward, gets to the point quickly, just the right speed and very easy to understand, thanks alot!

  • @obalfaqih
    @obalfaqih 6 лет назад +6

    Well explained!
    It has never been clearer to me, thank you so much for this informative tutorial.

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

      Thanks Omar - thanks for watching!

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

    Who else went through this whole video without ever pausing the video and going back a few seconds to repeat something?
    Haha, just kidding!
    I stopped and went back so often, I spent almost 2 hours on this video,
    because this was a Very Useful Video.
    Thank you David!

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

      Ha, I think my videos are a bit dense/compact could be good could be bad :-).

  • @kakarnyori5457
    @kakarnyori5457 6 лет назад +6

    One of the best git tutorial on git flow. Thank you!

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

      Thanks for that, you're welcome!

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

    This is a masterclass tutorial with proper examples and explanations. Well done sir.

  • @dipto100
    @dipto100 4 года назад +4

    Thanks for such a clear cut and specific explanation of the different cases when branching. It's really helpful to know beforehand what to do if any problems arise when starting to use Git.

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

    You rarely find the perfect combination of quality and generosity on the internet. This is one of them. Thank you very much! I hope that at some point I can do this too!!

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

      Thanks Bioan that was very kind!

  • @anisabdul1799
    @anisabdul1799 6 лет назад +10

    This and its earlier videos are extremely well done and useful. Thank you!

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

      You're welcome! And thank you!

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

    Never thought someone could explain git in such a simple & understandable way, kudos!

  • @brandonflorida1092
    @brandonflorida1092 7 лет назад +15

    Glad someone is explaining this clearly, but sometimes you go very quickly. Remember that we are absorbing new concepts as you speak.

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

      OK, thanks for the feedback!

    • @RJCuthbertson
      @RJCuthbertson 6 лет назад +11

      I had the same problem, but luckily, through the wonders of modern technology, I was able to pause and rewatch the parts I needed clarity on.

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

      Yeah, I'd say, just pause between points rather than going "slower"

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

      I'm __GLAD__ you go quickly! 28min is long enough, and RUclips EASILY allows left arrow to rewind to replay something!! Thanks :)

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

      @Phil I think you're suggesting the viewer should pause, not Mr. Mahler, right?

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

    This is the best explanation on RUclips

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

    Great coverage of the fundamentals, thank you. It's 15 years since I wrote any code in anger (ie, pre-Git), so this was a much needed primer to shake loose my SVN-based misconceptions!

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

      Git made me very angry for months when I had no clue what I was doing with it at first. Thanks!

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

    Perfect Illustration on fixing the merge conflict and detached head. Dear David, you are the best !!! appreciate your time for posting your know how and educating everyone here. Thank you !!

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

      Thanks a lot for the comment!

  • @ruixue6955
    @ruixue6955 4 года назад +5

    11:54 deleting branches
    12:33 git branch -d SDN
    13:18 there is no direct path from the master branch to the auth branch => 13:27 3-way merge
    13:30 3-way merge
    14:04 demo: git merge auth
    14:16 the output does not say fast-forward merge like last time
    14:29 git branch --merged
    14:51 *merge conflicts*
    16:32
    17:33 demo: git merge dev
    20:27 *detached HEAD* state
    21:27 another way to handle detached state
    21:36 put a new branch label
    22:30 git stash

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

    Best explanation of working with git branches I have ever come across. Reading git docs is like reading Chinese. Following this I actually now know what I'm doing. Thanks so much!

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

      Lot's of technical documentation is rough for me too, which was one of my main motivators for videos like this.

  • @KrishnaKumar-np3tw
    @KrishnaKumar-np3tw 5 лет назад +3

    Just incredible, as David's previous video on git basics. Thank you!

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

    Precise, concise and clear. No ums and arrs just well prepared delivery. Excellent!

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

    This is one of the best resources for learning merge. Thanks a lot, sir. Keep the good work going

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

    Literally the BEST git tutorial out there and I've watched dozens.

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

    1:00 - Creación de un repositorio
    5:04 - Creación de ramas
    10:08 - Fusión FFWD
    11:54 - Eliminación de ramas
    13:30 - Fusión a tres bandas
    14:49 - Conflictos de fusión
    20:25 - Detached HEAD
    22:30 - Stash

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

    This is by far the best git tutorials that I have come across. No other tutorial has explained the Detached HEAD state any better.

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

    I've been using git (mostly poorly) for a decade and I learned a lot from this video!

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

      We probably all do (use it mostly poorly) ha!

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

    This is a well documented tutorial.. step-by-step. No confusions what so ever. Thank you.

  • @RahulKumar-fc8cf
    @RahulKumar-fc8cf 25 дней назад

    This is THE BEST Git tutorial. Wonderful work!

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

    This is a great presentation. I am grateful David. Keep adding more videos on git, artifactory, jenkins, uDeploy etc if possible. Thank you so very much.

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

    this series is the best material on git than any conference talks on RUclips. Thank you very much David!

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

    Excellent and precise explainations, that make this video the easiest understandable tuto I found on the internet about git so far

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

      Awesome, thanks for the comment!

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

    You’re a gifted teacher. Hands down the greatest git explainer.

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

    very cool... explained in a subtle way step by step to common scenarios.

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

    Communication and presentation is an art. With that said, David's videos are Mona Lisa! Thank you David!

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

    These 3 videos are the best explanation videos for Git so far on RUclips......Great job David!...Thank you!

  • @Alex-xe6bl
    @Alex-xe6bl 4 года назад +2

    Felt like a github master after watching this series ♥

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

    Really enjoying the clarity & visual illustration of your explanations David. Best I've found on the subject.

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

    What more can I ask, if you explained it better than anyone I've seen on RUclips and.. AND.. added all the used commands in the description. You're a blessing.

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

      Thanks! Glad those were helpful ;-).

  • @bareminimum-mrtz
    @bareminimum-mrtz 3 года назад

    These videos are very underrated , best video for learning git...

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

    One of the best videos on branching and merging in git. Kudos to u for making this video

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

    highly comprehensive explanation and illustration, best I have seen on the topic so far...thank you!

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

    I always struggled in learning git and I just got to learn the basics and without fully understanding them, this video helped a lot with expanding my knowledge and also in a fun, interesting way, gonna watch all the three video tutorials for git, awesome work man keep it up, I know this is an old video but also gold

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

    Amazing videos on GIT. Lucid explanation of every concepts in detail. Thanks a lot!

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

    An explainer video done well... who would have guessed such a thing could be found on youtube???
    Well done!

  • @MuraliKrishna-ny2ti
    @MuraliKrishna-ny2ti 5 лет назад

    The three videos on Git gave me a clear understanding of Git. Out of all other sources I had looked for (including Coursera courses), this is the best. Thanks David.

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

    Really clear explanations, great visualizations and clean walk through of carefully picked examples, professional sound and screen, no distractions, flawless speech and neutral voice. More of that!!

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

    It is 2020 and it is still legit! Thank you

  • @nneddenn6207
    @nneddenn6207 9 месяцев назад

    David, excellent explanations. Crisp, short, easy to understand. You have done it really good)

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

    Excellent, I've been meaning to figure out how to use Git after being stuck on SVN for ages. This is super straightforward.

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

      nice, thanks! I never learned SVN.

  • @yaoluxttu
    @yaoluxttu 10 месяцев назад

    Your tutorials are really so helpful, very clear and logical graphics, using git status to show the current state every time, very helpful!

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

    After a confusing 4.5 hour course on Udemy, I finally understood it all thanks to you. Cheers!

  • @infodiff
    @infodiff 2 месяца назад

    Thank you... your way of explaining is so precise and easy to understand.

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

    Excellent explanation provided for GIt. Please make more videos for topics like Docker,Jenkins etc. you teach really well.

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

      I would definitely like to cover topics like that!

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

    Very good continuation of previous "Core Concepts" video. This video makes you understand git branching and merging. Clearly, nicely explained on simple examples with simple slides. Exactly what I need. Thank you, David for great tutorials!

  • @ogreeni
    @ogreeni 2 года назад +2

    This was very helpful and extremely well made. Thanks, David!

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

    Single handedly the best git intro tutorial... I've been suggesting another video to students all this time and one of them just sent me this. Precise and to the point, easy to understand and simply what a tutorial should be.

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

      Oh that's great, say thanks to the student for me ;-). Thanks!

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

    Excellent Explanation.Easy to understand the core concept of branching and merging.

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

    I became a fan of your explanation. Really great way to explain concepts practically and diagrammatically, loved it a lot. Had watched several videos but nothing gave me a clear-cut idea like your illustration did.

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

      Awesome, thanks for the feedback Karthik. I've had trouble with Git when I first was trying to learn it. I tried to present in a way I felt would have helped me when I started.

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

    Concepts are clear than thin air!

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

    Best playlist of git tutorial.Learned a lot . Clear explanation and simple graphic illustration.
    Thank you David

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

    The best git intro videos on youtube

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

    Explained with simple words and examples ..!
    Resolved the mystery of detached HEAD

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

      Thanks I know, it was so weird to me at first!

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

    A very unique way you have explained everything. Direct encountered point to point. appreciate your work David. Thank you !!

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

    Thanks so much! Clear and simple! Which are terms that are hard to describe git with.

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

      HA, so true, thanks for being a subscriber!!

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

    Best tutorial on git I found in youtube.

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

    Awesome explanation ... Every time I read and watch stuff about git I end up with so many questions. But you cleared all my doubts in 30 minutes and now I am so confident in using git.
    Thank you so much

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

      Awesome, that is great to hear, thank you!

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

    you are a professional speaker, love your explanation

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

    phenomenal, this video is most precise and fast way of understanding concept.
    One of the best for Git branching , which is normally confusing to understand but you rock and you made it so simple.
    you conveyed the concept in just 28 min . Really creative and more precise.
    Thank you David

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

      You are quite welcome, thanks for the detailed feedback!

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

    Thank you so much. I'm a tech writer that has never been a programmer trying to translate this stuff to a busy client. This and your core concepts video were lifesavers!

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

      Thats great I'm glad it was useful for your work!

  • @ranxanadhikari6925
    @ranxanadhikari6925 5 лет назад +2

    I have never ever had such a good explanation on anything like this! 🙃 Amazing. Thanks.

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

    Very clear explanation on a super-dry subject! The simple graphics and text highlighting worked really well, thanks for putting in the time to make this video.

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

    The greatest explanation I was looking for is here in your video which I found it by luck. Thank you so much..

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

    This is a really great tutorial for someone who has the basics and just wants to start learning some advanced concepts.

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

    Excellent content. It helped me to grasp a bit of Git. I also watched Introduction to Git - Core Concepts, which in fact is needed here.

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

    Best explanation about git I found on youtube

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

    The best explanation, step by step. Git now is so simple

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

      Thanks for continuing to support the channel!

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

    Your videos are the best git videos on the whole internet..
    And thankyou..

  • @leo-rq2ei
    @leo-rq2ei 5 лет назад

    This is by far the best lecture on git I’ve seen

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

    Made the most dreaded topics in git look like a piece of cake!!!
    Loved your simple and to the point explanation!!

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

    probably one of the best Git tutorial out there with a very crisp and to the point explanation. Thank you, this really helped out a lot !!

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

    The best Git tutorial on RUclips! 18 haters must be kidding!

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

      Ha, no one is perfect! Thanks!