Git & GitHub Tutorial for Beginners #9 - Merging Branches (& conflicts)

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 212

  • @Zaidkhan-q8o
    @Zaidkhan-q8o 4 дні тому

    I tried to watch other youtubers videos about git, but when I watched your playlist even after 7 years I got it beneficial and beginner friendly.

    • @NetNinja
      @NetNinja  2 дні тому

      Great to hear! :) glad it was helpful Zaidkhan

  • @arijitgayen4674
    @arijitgayen4674 5 років тому +50

    "Yeah! I'm terribly original!" You rock....And these tutorials are just awesome....

    • @mysterOrel7924
      @mysterOrel7924 5 років тому +1

      ahahah I just made a comment like this without seen yours

  • @hpottstock
    @hpottstock 7 років тому +124

    Thanks man. All my fears about starting with git have disappeared. Ready for the github videos now! Cheers!

    • @pitter6282
      @pitter6282 3 роки тому +5

      me too i'm scared of that sht

    • @Nellak2011
      @Nellak2011 3 роки тому +2

      Me too. Ever since I made my own repo and have been consistently making changes to it, it has been getting easier and easier. I now am starting to understand different concepts. It is alot easier than I thought it was in my mind.

  • @mangekyourinnegan9
    @mangekyourinnegan9 2 роки тому +25

    Thank you very much for the clear explanation! Even 5 years after this tutorial is still relevant

    • @NetNinja
      @NetNinja  2 роки тому +1

      Great to hear, thanks Jose!

    • @benfrese3573
      @benfrese3573 2 роки тому +4

      @@NetNinja I second that. Still useful!

    • @equim7363
      @equim7363 2 роки тому +1

      @@benfrese3573 that's because git hasn't changed much

  • @hyfytale9577
    @hyfytale9577 5 років тому +96

    "... now I want you to imagine that some upstart new at the company has decided to just make edits on the master branch. Yep, those people do exist." This is where I cracked. XD

    • @ozzyfromspace
      @ozzyfromspace 3 роки тому +2

      Lol he basically called me out 😂😭😂 what can I tell ya... noobs will be noobs 😭👽😌😂

    • @codedynamics1
      @codedynamics1 3 роки тому +1

      😂

    • @davidrimoch9080
      @davidrimoch9080 2 роки тому +1

      That was funny, but jokes a side, if I'll make changes in other branch, feature-d, and then merge it to master, wouldn't it have the same result as someone who made edits in master?
      For the next person that want to merge to master, wouldn't it be the same? Maybe it's just less safe?
      Help me out here😅

  • @erichepperlewp
    @erichepperlewp 2 роки тому +7

    @The Net Ninja: I just found this tutorial when I was trying to understand a good workflow and common use case for branches and merging. And I must say you are one of my favorite UA-cam instructors in the way you explain everything step-by-step! Keep up the good work!!

  • @peterinvestor
    @peterinvestor 6 років тому +14

    When I started with GIT, I was one of those people who were updating directly master :D until everyone was complaining :D

  • @mysterOrel7924
    @mysterOrel7924 5 років тому +5

    "Yep i'm terribly original" that's why you're easy to follow !! Love you Sensei from Sénégal

  • @Hacking-NASSA-with-HTML
    @Hacking-NASSA-with-HTML 2 роки тому +1

    Gold. Pure gold! I was so scary to touch that area of git! And now everything clear! Thank you, Ninja!

  • @theartist8835
    @theartist8835 4 роки тому +2

    we love you Shaun. I am very appreciative of what you do for us! keep up the fantastic work.

  • @DTX_
    @DTX_ 4 роки тому +3

    I had to do my first merge into production code and I watched this video to make sure I don't f* it up! Thanks man, I love your videos.

  • @voychoi9923
    @voychoi9923 2 роки тому +1

    you did a great job at simplifyng this issue with those branch names and examples

  • @n3ttx580
    @n3ttx580 3 роки тому +1

    I was so confused about how to resolve conflicts in files, VS Code also makes it a little more intimidating with different functions, messages and whatnot, but this helped me to understand what it actually all does, how it happens and how to resolve them. Thank you!

  • @jayrocks09
    @jayrocks09 3 роки тому +1

    "And we don't do it in the text editor, we do it over here"
    always gets me! Lol
    Thanks for this bro!

  • @mahamadounouridinemamoudou9875

    "and we don't do it in the text editor we do all in the terminal" 😅 just for have fun.
    you have the best explanation, thank you for this tutorial

  • @nexusfriends1134
    @nexusfriends1134 6 років тому +1

    By far, the best explanation on this. 3rd video I had to watch since the literature Im going over was blurry on my head. Subscribing now.

  • @leonelnascimento5078
    @leonelnascimento5078 7 років тому +27

    Don't understand why that dislike on the video... Best explanation ever, very detailed. :)

    • @Ahmed-od3sp
      @Ahmed-od3sp 6 років тому +1

      @The Erudite it has 1 dislike now. Not a complaint, rather an observation

    • @standm6130
      @standm6130 5 років тому

      OP didn't show how the Merges worked in the Master branch.. That is a fail, if you ask me. TD

    • @aaqibsoomro5776
      @aaqibsoomro5776 4 роки тому

      @@Ahmed-od3sp 23 dislikes now

    • @hectord.7107
      @hectord.7107 4 роки тому +2

      Probably a master branch developer and his friends

  • @nicolevitalli8665
    @nicolevitalli8665 6 місяців тому +1

    when the person who made the tutorial has a accent like this you know the tutorial will be good

  • @janekalam
    @janekalam 4 роки тому +2

    By far the best tutorial on Git. Thanks a lot man!

  • @AnthonyWatsonMWArts
    @AnthonyWatsonMWArts 5 років тому +2

    Two thumbs way up for this! Thanks for clearing up a lot of confusing tutorials.

  • @erichepperlewp
    @erichepperlewp 2 роки тому +4

    #HepperleVidIndex
    1:39 - Merge branch into master: 1) git checkout master; 2) git merge branch name
    3:46 - Resolving merge conflicts:
    6:26 - "Automatic merge failed"
    7:40 - Fix merge conflicts (in the applicable files) then git add .; git commit

  • @EricAbroad
    @EricAbroad 3 роки тому

    currently a Master branch updater. Cant wait to master Branches and Merging. Thanks mate!

  • @neiledwarddelacruz9419
    @neiledwarddelacruz9419 3 роки тому

    your tutorials is always detailed, easy to understand and very helpful

  • @fabio__reis
    @fabio__reis 3 роки тому +1

    Your explanation was fantasic, sir! This is definitely not very simple stuff but you made it seem like a breeze to do, really appreciate it :)

  • @royalflush13
    @royalflush13 5 років тому +10

    You are a truly gifted instructor! I recently purchased a udemy course on git and GitHub, however the explanations on it weren't that great. I'm probably gonna refund that course cos your course is so much better. And it's free!
    P. S. If you do make a udemy course on this I'd definitely purchase it

    • @ivanyoed
      @ivanyoed 3 роки тому

      You could also support him on patreon www.patreon.com/thenetninja

  • @Grovermol
    @Grovermol 3 роки тому +1

    Thanks dude, i really enjoyed the explanation, "Yup, those people do exist" jaja indeed they do

  • @SKMINSARR
    @SKMINSARR 3 роки тому +1

    I think you solv my issues. great video btw

  • @abhishekvtatachar2541
    @abhishekvtatachar2541 2 роки тому

    Dude, this tutorial is awesome!! I found just what I needed. Thanks man!!

  • @issajohn8003
    @issajohn8003 7 років тому +2

    Thanks for these tutorials. You're a lifesaver!

  • @bogdanmihalciu9711
    @bogdanmihalciu9711 Рік тому

    I enjoy your short funny and very informative videos. you truly are a legend :D

  • @MinisterGold
    @MinisterGold 6 років тому +1

    Very simple merge conflict tutorial. Thank you.

  • @chapreljohnvillegas8539
    @chapreljohnvillegas8539 6 років тому +4

    "You get this scary screen again". Thanks dude. Always the best.

  • @Tracks777
    @Tracks777 7 років тому +11

    Great stuff :)

  • @orenjibeat
    @orenjibeat 3 роки тому

    It was me. I was the upstart. I exist. Thanks for showing me the error of my ways

  • @TheMegaman161
    @TheMegaman161 5 років тому +1

    Thanks a lot man, this stuff used to confuse the hell out of me.

  • @codedynamics1
    @codedynamics1 3 роки тому

    that little "upstart" damn him ! Touching things he's not supposed to ! anyway im glad he did otherwise you wouldnt have done a video on it ! thanks ninja really enjoyed it👏 ...." mumbo jumbo " 🤣😭🤣

  • @hosseinjavan137
    @hosseinjavan137 3 роки тому

    best teacher ever

  • @AkshatSinghania
    @AkshatSinghania 3 роки тому

    thanks for the tutorial, you should have a billion subs, but you have only 693 omg , nice video

  • @caglayang5348
    @caglayang5348 2 роки тому

    Finally great explanation.

  • @istamosh
    @istamosh Рік тому

    On 2:48 mine shows merge made by the 'ort' strategy, upon searching on their documentation it says Ostensibly Recursive’s Twin which basically replaces 'recursive' strategy but faster.

  • @sarahjuliagushef7755
    @sarahjuliagushef7755 4 роки тому

    I love your explanation. Please make a video about rebase, and compare it with merge. Thanks

  • @MahmoudMohsab
    @MahmoudMohsab 5 років тому +1

    start at 5:30

  • @ab3d69
    @ab3d69 4 роки тому

    "git branch" does the same as "git branch -a". i used to use "switch" instead of "checkout" to walk to different branches :) . plus, "git checkout -b " is equal to "git switch -c "

  • @onyinyechichukwuma689
    @onyinyechichukwuma689 2 роки тому

    Bloody hilarious and educational video. I love it, thanks! 🙃

  • @fadif8818
    @fadif8818 5 років тому

    Very helpful video.. You presented your material in a very clear way.. Thanks!

  • @mayamaya-wb6zl
    @mayamaya-wb6zl 4 роки тому

    best to the point tutorial

  • @santi.delatorre
    @santi.delatorre 2 роки тому +1

    just great tut 👏straightforward and easy to follow. new sub :)

  • @togax5
    @togax5 4 роки тому

    I really like your explanation. Very useful. Thanks for this great video.

  • @calebstevens8269
    @calebstevens8269 3 роки тому

    Just started my firsty game jam and learning to use git at the same time. I am that intern :)

  • @othmanederrar1997
    @othmanederrar1997 2 роки тому +1

    You are amazing Bro keep it up

  • @abdullahmoiz8151
    @abdullahmoiz8151 4 роки тому

    Thanks a lot explained in a simple and concise manner

  • @kabinpoudel4707
    @kabinpoudel4707 4 роки тому

    Love the way you explain.

  • @priyanshukatuwal
    @priyanshukatuwal Рік тому +1

    You are the best! Thank you sooo much!!!

    • @NetNinja
      @NetNinja  Рік тому +1

      Glad it helped! :) thanks for watching

  • @RichardHoman9009
    @RichardHoman9009 5 років тому +2

    So, if there are two people who've each made a branch to work on different features need to commit back to master because they're done with their features and they happen to have modified the same files, would that not be the exact same scenario? Wouldn't whoever happened to finish first become the "upstart" in the video despite doing it the way they were supposed to?

  • @biniblissful6274
    @biniblissful6274 4 роки тому +1

    Oh my, you really are awesome! Thanks.

  • @adamwoolf9993
    @adamwoolf9993 3 роки тому

    Super helpful and clearly explained. Thanks.

  • @learnhard9197
    @learnhard9197 4 роки тому +2

    Shaun, I would like to ask a small question. Let's imagine that 2 persons working on new features and it is time to merge them to the master branch. The first merge is done and while doing the second one it will be inevitable a conflict, right (because the master branch is changed)? How to avoid it, thanks.

  • @yt-sh
    @yt-sh 2 роки тому

    You saved so much of time, thank you!

  • @raisama4314
    @raisama4314 Рік тому

    This was very helpful. Thank you very much
    I hope you also make video on more advanced git

  • @yogeshbhatt388
    @yogeshbhatt388 4 роки тому

    straight up knowledge, no bullshit

  • @hamzasabir6053
    @hamzasabir6053 4 роки тому

    Great and simple explanation, thank you!

  • @juliorodriguez8091
    @juliorodriguez8091 4 роки тому +1

    Thanks, man, this really helped me.

  • @pawel80
    @pawel80 2 роки тому

    Thanks for your tutorials, are very helpful.

    • @NetNinja
      @NetNinja  2 роки тому

      Awesome to hear that and thanks for watching, Paweł

  • @turalsadigov4490
    @turalsadigov4490 4 роки тому

    Thanks a lot for these tutorials. Really helpful

  • @rafik.arif.83
    @rafik.arif.83 4 роки тому

    Excellent tutorial

  • @oluwatobiadeniji4268
    @oluwatobiadeniji4268 Рік тому

    can a conflict still occur if the new employee edited in a branch then merge and the old employee edited in a branch and merge? at 05:58

  • @notjustanyuser
    @notjustanyuser 5 років тому

    Wonderfully explained. Thanks

  • @_isaac_muniz_
    @_isaac_muniz_ 3 роки тому

    Thanks again. Great lesson!

  • @Calibike
    @Calibike 2 роки тому

    This is very useful and very clear

    • @NetNinja
      @NetNinja  2 роки тому

      Thanks Calibike, glad to hear that! :)

  • @karlxu1548
    @karlxu1548 4 роки тому

    2:55
    Need to dig deeper to understand what's actually happening for different merging strategies.
    This mentioned two:
    - Fast forward
    - Recursive

  • @srivatsajoshi
    @srivatsajoshi 4 роки тому

    Nicely Explained. 🔥🔥

  • @jacobokomo1880
    @jacobokomo1880 3 роки тому +1

    That upstart, lol.
    -anyways, Thanks the Net Ninja, you saved me a lot.

  • @johnnyb9974
    @johnnyb9974 4 роки тому

    great video! Helped a ton. Awesome channel name!

  • @pedromatoso279
    @pedromatoso279 4 роки тому

    Thanks for this great explanation

  • @ashokthejab9713
    @ashokthejab9713 3 роки тому

    Thank you! for making it simple.

  • @abishekkachroo938
    @abishekkachroo938 5 років тому

    or you can merge it using bash
    and then after opeining that file using VScode and it will give 3 options
    apply local chnages
    apply remote changes
    Apply both
    This will come usually when you are facing these type of issue , Code in the master branch (which would be in remote) would be different or you can say step ahead of you .

  • @siddharthachatterjee9959
    @siddharthachatterjee9959 5 місяців тому

    Great one, thanks. In 'master', with 'git log --online', why is 'Merge branch feature-a' not showing ?

  • @jaxc2399
    @jaxc2399 4 роки тому

    Thank you so much for these videos. Why do I never see you use git push? I thought it had to be used after every git commit

  • @andrew.schaeffer4032
    @andrew.schaeffer4032 Рік тому

    Great explanation! Thanks

  • @MrViciousway
    @MrViciousway 4 роки тому

    Thanks a lot, that was straight forward.

  • @nadjibm7
    @nadjibm7 Рік тому

    awsome ! thank you i wish u all the best

    • @NetNinja
      @NetNinja  Рік тому +1

      Thanks for watching Nadjib!

  • @sidisidahmed755
    @sidisidahmed755 Рік тому

    i have a question why don't you use git push after commit ? is it for educational matter or what ? thank you by the way for the videos they are perfect clear and straight to the point

  • @andreabarbieri9518
    @andreabarbieri9518 Рік тому

    just started my first job and i did commit on the master branch , hahaha yes those people do exist ..ME !! 😁😁

  • @matheusjordan6031
    @matheusjordan6031 2 роки тому

    Nice video, very helpful!

  • @vishnu_bhatt
    @vishnu_bhatt 6 років тому

    Best explanation. ☺

  • @bahaeddinebenamieur9404
    @bahaeddinebenamieur9404 3 роки тому

    You're a game changer

  • @andriibilych4983
    @andriibilych4983 4 роки тому

    You are a good man! Thank you

  • @youssefb581
    @youssefb581 3 роки тому

    If I may ask, what terminal are you using? Is this like a skin for the windows 10 command prompt or just another program perhaps?

  • @charleskangai4618
    @charleskangai4618 4 роки тому

    Thanks. Very helpful.

  • @NeelSandellISAWESOME
    @NeelSandellISAWESOME 4 роки тому

    This is very cool stuff

  • @rodrigo-vl7bi
    @rodrigo-vl7bi 5 років тому

    this was so useful, thank you sooo much

  • @k4piii
    @k4piii 4 роки тому

    you should definitive use displayfusion or any program similar to specify an area for each window

  • @oliverbrianbarravasquez9071
    @oliverbrianbarravasquez9071 6 років тому

    Great tutorial bruh!

  • @chelsirawat3336
    @chelsirawat3336 4 роки тому +1

    Had a query, what if there are lots of files in which we made changes, even then we will have to remove those extra lines manually?? #please_answer

  • @jeroenj7494
    @jeroenj7494 6 років тому

    Useful and a life saver!

  • @rtzstvn
    @rtzstvn 5 років тому +1

    great video!

  • @Dylan-cm1br
    @Dylan-cm1br 4 роки тому +1

    Thank you :)

  • @nerosonic
    @nerosonic 4 роки тому

    nice tutorial I learned a lot!

  • @JustinPaulGT
    @JustinPaulGT 4 роки тому

    excellent job!

  • @FitnessChaos
    @FitnessChaos 5 років тому

    very good video dude