How to resolve merge conflicts in Git

Поделиться
HTML-код
  • Опубликовано: 15 июл 2024
  • Git merge conflicts can be confusing and frustrating.
    If you want to learn how to resolve git merge conflicts, this tutorial is for you.
    What you will learn in this Git config tutorial:
    - when do git merge conflicts occur
    - how to resolve merge conflicts in VSCode
    What do you hate the most about merge conflicts? Let me know in the comments.
    Premium Online Courses for front end developers and designers.
    ihatetomatoes.net/store/
  • НаукаНаука

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

  • @videogamesare1
    @videogamesare1 3 года назад +167

    Thanks, I was genuinely about to call the local fire department when I ran into a merge conflict.

    • @Ihatetomatoes
      @Ihatetomatoes  3 года назад +9

      Haha, fire department is always handy 😂

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

      😂😂

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

      😂😂

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

      IT people never call the fire department when there is a fire! They send an e-mail.

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

      😂😂😂😂 me too bro

  • @tristanhofer7399
    @tristanhofer7399 3 года назад +70

    I was totally frustrated by the merge conflicts. Your tutorial was easy to understand and helped me to solve all conflicts. Thank You!

  • @NA-sq1pt
    @NA-sq1pt 2 года назад +1

    I never like or comment on videos, but your words of encouragement at the end mean so much to a self-taught coder that I had to let you know. Thank you!

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

    This was amazing! 10/10. One of the most informational and concise videos I've ever watched

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

    Thanks for such a clear explanation. I got this merge conflict in my first pr. This video helped a lot.

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

    Awesome demonstration. Simple and yet powerful !

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

    Most importantly, thanks for your encouraging words at the end! It gave me confidence!

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

    So simple and yet so powerful, thank you!

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

    Excellent tutorial. Short and to the point.

  • @AnuragSingh-cx5ho
    @AnuragSingh-cx5ho 3 года назад +2

    Thank you so much I am new in VS code and git , I was stuck now it's clear for me thanks once again

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

    Thank you so much for this tutorial. It was so easy to understand and it saved me lots of time! Keep up the good work😃

  • @user-mg7dn9oy8r
    @user-mg7dn9oy8r Год назад

    This genuinely helped me understand git merge so well !!!! Thanks a lot dude !!!!

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

    Thank you so much, I first ram git merge --abort to get off the hook i was in, then understood how to resolve conflicts.

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

    I was panicking and thought to abort the merge. But this tutorial has saved my life! Thank you so much.

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

    Very informative! Thank you! I feel like I finally "git" it!

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

    I re-made my repo 2 times, finally you saved my life

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

    Great video, short and simple, thanks

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

    hahahaha the desciprtion of the "--abort" was super funny! I'll never forget it now LOL

  • @phire0
    @phire0 3 года назад +6

    Thanks for this, your videos are very informative and easy to follow :)

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

    Fantastic video, helped a lot. Like your sense of humour too 👍

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

    Wow, i really did not know that Moby also knows Git. Thank you a lot bro!

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

    PHEW! I panicked when i first came across this error. Thanks for this tutorial! Much obliged!

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

    Great Video, The Simplicity is Bliss

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

    Thanks for this, This helped me big time

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

    Thanks, didn't know vscode can be used like that, was trying hard to get it work. I'm really new to this git thing

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

    Pretty helpful stuff, thanks man

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

    explained very clearly.. practice makes a perfect

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

    I really appreciated your help.

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

    THIS HELPED SO MUCH. THANKS!

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

    Thanks a lot! I have got started.

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

    Short and simple , Thank you

  • @two2657
    @two2657 11 месяцев назад

    Very accurate and straightforward. Thakusomuch

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

    Thanks .. This video help me a lot to resolve all conflicts.

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

    Thank you so much. It's so helpful

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

    Amazing tutorial !

  • @HadayatNiazi-xp1fz
    @HadayatNiazi-xp1fz 7 дней назад

    pretty straightforward tutorial. Thank you

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

    THANK YOU !!!! simply explained

  • @mr.hussain8714
    @mr.hussain8714 Год назад

    Thanks man, this helped me a lot.

  • @westfield90
    @westfield90 3 года назад +13

    I always get an heart attack when I see conflict. This always freaks me out

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

    Explained good in sort time

  • @SATNAMSINGH-pb7gc
    @SATNAMSINGH-pb7gc 2 года назад

    Thanks for this video helped me through the problem

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

    Thanks for creating this video

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

    Great teacher, thank you!
    I need to watch videos on DOM

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

    excellent video Petr!

  • @irislicb3343
    @irislicb3343 2 года назад +7

    Hi, excellent tutorials! Also it has been a great idea to add the commands being used in a big label text, much appreciated. My questions is, when you are merging pictures (.png .jpg) to resolve conflicts, is it the same process as when you merge text? Thank you!

  • @anhhoangleduc
    @anhhoangleduc 11 месяцев назад

    i'm newbie, thanks for your guide, practice make perfect

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

    nice, thank you! :)

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

    Pretty helpful. Thanks

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

    Thanks for the video. I'll not only smash the LIKE button, but I'll also smash some tomatoes!

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

    Thank you very much

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

    Most usefull video ever for whole humanity

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

    Nice video; thanks for sharing

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

    Hi Git merge explanation is really great,pls make a video on Git rebase in detail ... thanks a lot ...

  • @suppotdekimjong-un5615
    @suppotdekimjong-un5615 3 года назад +1

    Thank you. I didn't understand what HEAD

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

    Thanks saved my day.

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

      No worries, great to hear that it helped!

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

    Saved my day

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

    hooh, Thanks for explaining, you are awesome

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

    Thank you very much, Sir)

  • @gracianomanuelhenrique9101
    @gracianomanuelhenrique9101 11 месяцев назад

    I enjoy the video, and your way to speak English, It is very understandable

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

    "The famous conflict which everybody hates" aah those words really touched my soul

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

    Thank you!

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

    Thank you so much!

  • @DereC519
    @DereC519 11 месяцев назад

    this helped thanks

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

    That logo is lit :D

  • @uroscesnik-ferlan9956
    @uroscesnik-ferlan9956 3 месяца назад

    Thank you very much.

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

    you saved my life

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

    Thanks for sharing

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

    Thanks man!

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

    Thank you, tomatoes guy

  • @user-el9kk8mn5o
    @user-el9kk8mn5o 2 года назад

    İt's work very well thank you

  • @AK-tt7fc
    @AK-tt7fc 7 месяцев назад

    Very helpful

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

    amazing video

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

    You are the master . macha Allah .

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

    Thank you

  • @Arya20012
    @Arya20012 Месяц назад

    Thank you sir ❤❤

  • @SATNAMSINGH-pb7gc
    @SATNAMSINGH-pb7gc 2 года назад

    Thanks for the video (comment through api)

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

    superb

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

    Thank you for all the videos! Gotta ask, what's your bash profile script to make it folder > branch with the colors and what not?

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

    You just saved me 😌

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

    thank you

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

    great content, thank you! btw what is the extension that you are using which shows the branches?

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

    thank you

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

    This is a great example for conflicts in a single file.
    Do you have another example where you move the file `content.txt` into another folder, then another user add changes into `./content.txt`, but in the original path. git will mark the files as deleted. So the changes that were added into the original path will not be added into `new_folder/content.txt` having an example of this will be great!

  • @rosaal9030
    @rosaal9030 25 дней назад

    thank you you are perfect

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

    Thank you Git master

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

    thx u so much

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

    thank you, mate, I was lost here...

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

    Thanks

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

    Informative video, but my question to you is , when you resolved conflicts and add a new commit message , dont you think it will push a new commit message and later on when you compare two different branches , you will again find some conflicts . As your branch is one commit ahead or behind ?

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

    git status would not be happy more than me now , many thanks .

  • @jonathanshitrit6344
    @jonathanshitrit6344 4 года назад +6

    Thank you for such an informative yet simple explanation! Are you using any VSC extensions for git to get those small Accept Change buttons?

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

      Thanks Jonathan. I believe they are part of the build in Git integration. I will talk about Git extensions in the future. Anything else you would like to see covered?

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

      Yes, very great and informative, I didn't get the small accept change buttons thing too, and now i'm stuck, please any git command to proceed with ? I want to accept both changes. Thanks

  • @user-bx7ly2th3b
    @user-bx7ly2th3b 2 года назад

    Thanks for video it helped me a lot! How to make git bash looks like yours?

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

    Thanks for your video. It was very useful and easy to understand. I have a question, though. I like your colored terminal prompt. How can I have this? Is it s plugin? Please, reply.

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

    thank you sir. git merge --abort

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

    how can i get that git teminal UI

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

    Thanks for the vid. Just a quick question: what is the merge tool you are using here?

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

    Nice

  • @sensai7213
    @sensai7213 14 дней назад

    Thx for the video. What about if you have multiple file conflicts? will you add git add. file1, file2, file3....?

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

    haha, loved this one

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

    I never expected to be learning Git from Moby.