How to resolve merge conflicts in Git

  Рет қаралды 269,423

Ihatetomatoes

Ihatetomatoes

Күн бұрын

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/

Пікірлер: 192
@videogamesare1
@videogamesare1 3 жыл бұрын
Thanks, I was genuinely about to call the local fire department when I ran into a merge conflict.
@Ihatetomatoes
@Ihatetomatoes 3 жыл бұрын
Haha, fire department is always handy 😂
@shadyfixtech4763
@shadyfixtech4763 Жыл бұрын
😂😂
@marvine71
@marvine71 Жыл бұрын
😂😂
@StijnDeWitt
@StijnDeWitt Жыл бұрын
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 жыл бұрын
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 жыл бұрын
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 жыл бұрын
This was amazing! 10/10. One of the most informational and concise videos I've ever watched
@netindu
@netindu 3 жыл бұрын
Awesome demonstration. Simple and yet powerful !
@jeromederrick551
@jeromederrick551 2 жыл бұрын
Most importantly, thanks for your encouraging words at the end! It gave me confidence!
@khushalijiyani6397
@khushalijiyani6397 3 жыл бұрын
Thanks for such a clear explanation. I got this merge conflict in my first pr. This video helped a lot.
@liorpolak1391
@liorpolak1391 2 жыл бұрын
Excellent tutorial. Short and to the point.
@oLunatiko
@oLunatiko 2 жыл бұрын
So simple and yet so powerful, thank you!
@user-mg7dn9oy8r
@user-mg7dn9oy8r Жыл бұрын
This genuinely helped me understand git merge so well !!!! Thanks a lot dude !!!!
@AnuragSingh-cx5ho
@AnuragSingh-cx5ho 3 жыл бұрын
Thank you so much I am new in VS code and git , I was stuck now it's clear for me thanks once again
@Jessy150
@Jessy150 Жыл бұрын
I was panicking and thought to abort the merge. But this tutorial has saved my life! Thank you so much.
@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😃
@BilligeWitze
@BilligeWitze 4 жыл бұрын
Great video, short and simple, thanks
@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.
@davepipkin2743
@davepipkin2743 3 жыл бұрын
Very informative! Thank you! I feel like I finally "git" it!
@pushparajpragadeesh5192
@pushparajpragadeesh5192 2 жыл бұрын
explained very clearly.. practice makes a perfect
@nirvanzentinal
@nirvanzentinal 3 жыл бұрын
Short and simple , Thank you
@Ihatetomatoes
@Ihatetomatoes 3 жыл бұрын
Thanks Nirvan!
@phire0
@phire0 3 жыл бұрын
Thanks for this, your videos are very informative and easy to follow :)
@Ihatetomatoes
@Ihatetomatoes 3 жыл бұрын
Thanks Jamie!
@theredbluecube2711
@theredbluecube2711 2 жыл бұрын
I re-made my repo 2 times, finally you saved my life
@keifer7813
@keifer7813 Жыл бұрын
Fantastic video, helped a lot. Like your sense of humour too 👍
@two2657
@two2657 11 ай бұрын
Very accurate and straightforward. Thakusomuch
@hermestlse
@hermestlse 8 ай бұрын
Most usefull video ever for whole humanity
@adebanjooluwasola4709
@adebanjooluwasola4709 Жыл бұрын
Great Video, The Simplicity is Bliss
@anhhoangleduc
@anhhoangleduc 11 ай бұрын
i'm newbie, thanks for your guide, practice make perfect
@cervece41
@cervece41 3 жыл бұрын
Pretty helpful stuff, thanks man
@jshvaron
@jshvaron Жыл бұрын
THIS HELPED SO MUCH. THANKS!
@gracianomanuelhenrique9101
@gracianomanuelhenrique9101 11 ай бұрын
I enjoy the video, and your way to speak English, It is very understandable
@ProSimples
@ProSimples 3 жыл бұрын
I really appreciated your help.
@tomaslopez9999
@tomaslopez9999 2 жыл бұрын
Thanks for creating this video
@SATNAMSINGH-pb7gc
@SATNAMSINGH-pb7gc Жыл бұрын
Thanks for this video helped me through the problem
@muradmagomedov5282
@muradmagomedov5282 2 жыл бұрын
Wow, i really did not know that Moby also knows Git. Thank you a lot bro!
@nagarajmpn
@nagarajmpn 2 жыл бұрын
Thanks a lot! I have got started.
@christopherpink842
@christopherpink842 2 жыл бұрын
THANK YOU !!!! simply explained
@ebuggs212
@ebuggs212 Жыл бұрын
PHEW! I panicked when i first came across this error. Thanks for this tutorial! Much obliged!
@chandukumar2402
@chandukumar2402 2 жыл бұрын
Thanks .. This video help me a lot to resolve all conflicts.
@raiyan22
@raiyan22 2 жыл бұрын
Thanks for this, This helped me big time
@mr.hussain8714
@mr.hussain8714 Жыл бұрын
Thanks man, this helped me a lot.
@aisak4753
@aisak4753 2 жыл бұрын
Amazing tutorial !
@daniellaerachannel
@daniellaerachannel 4 жыл бұрын
excellent video Petr!
@Ihatetomatoes
@Ihatetomatoes 4 жыл бұрын
Thanks mate!
@serjmarkelov9915
@serjmarkelov9915 Жыл бұрын
Thank you so much!
@enssahfayiamomoh8410
@enssahfayiamomoh8410 10 ай бұрын
Great teacher, thank you! I need to watch videos on DOM
@TechWorldwithPankaj
@TechWorldwithPankaj 3 жыл бұрын
Explained good in sort time
@Lu5ck
@Lu5ck 2 жыл бұрын
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
@shamimanasrin3269
@shamimanasrin3269 2 жыл бұрын
Thank you so much. It's so helpful
@taras3028
@taras3028 Жыл бұрын
hooh, Thanks for explaining, you are awesome
@angelsebastianbellomateo6954
@angelsebastianbellomateo6954 Жыл бұрын
Pretty helpful. Thanks
@uroscesnik-ferlan9956
@uroscesnik-ferlan9956 3 ай бұрын
Thank you very much.
@iamviduranishantha
@iamviduranishantha 4 жыл бұрын
Thanks saved my day.
@Ihatetomatoes
@Ihatetomatoes 4 жыл бұрын
No worries, great to hear that it helped!
@hamidja1537
@hamidja1537 Жыл бұрын
Thanks for sharing
@ravikarri6161
@ravikarri6161 Жыл бұрын
Thank you!
@FiveFourThor
@FiveFourThor 2 жыл бұрын
hahahaha the desciprtion of the "--abort" was super funny! I'll never forget it now LOL
@shalarasgar3276
@shalarasgar3276 9 ай бұрын
Thank you very much
@bshwjt
@bshwjt 2 жыл бұрын
Nice video; thanks for sharing
@AK-tt7fc
@AK-tt7fc 7 ай бұрын
Very helpful
@DereC519
@DereC519 11 ай бұрын
this helped thanks
@Arya20012
@Arya20012 23 күн бұрын
Thank you sir ❤❤
@themichael8767
@themichael8767 2 жыл бұрын
Thank you very much, Sir)
@Lumary
@Lumary 3 жыл бұрын
nice, thank you! :)
@irislicb3343
@irislicb3343 2 жыл бұрын
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!
@westfield90
@westfield90 3 жыл бұрын
I always get an heart attack when I see conflict. This always freaks me out
@abhisheksarangi3844
@abhisheksarangi3844 3 жыл бұрын
Saved my day
@luantorres3758
@luantorres3758 3 жыл бұрын
you saved my life
@sanskritisinghrathore3022
@sanskritisinghrathore3022 2 жыл бұрын
Hi Git merge explanation is really great,pls make a video on Git rebase in detail ... thanks a lot ...
@user-el9kk8mn5o
@user-el9kk8mn5o 2 жыл бұрын
İt's work very well thank you
@thepredestined7637
@thepredestined7637 Жыл бұрын
amazing video
@Frogieder
@Frogieder 2 жыл бұрын
Thank you
@siddhant2002
@siddhant2002 Жыл бұрын
You just saved me 😌
@ahmadm520
@ahmadm520 Жыл бұрын
Thank you Git master
@subramanianbalagopalan2866
@subramanianbalagopalan2866 Жыл бұрын
superb
@englishisclearnow4293
@englishisclearnow4293 3 жыл бұрын
You are the master . macha Allah .
@usmansbk
@usmansbk 2 жыл бұрын
Thanks for the video. I'll not only smash the LIKE button, but I'll also smash some tomatoes!
@SATNAMSINGH-pb7gc
@SATNAMSINGH-pb7gc Жыл бұрын
Thanks for the video (comment through api)
@ARJavan
@ARJavan 2 жыл бұрын
Thanks man!
@rosaal9030
@rosaal9030 13 күн бұрын
thank you you are perfect
@Yev300
@Yev300 2 жыл бұрын
That logo is lit :D
@JavArButt
@JavArButt 3 жыл бұрын
Thank you, tomatoes guy
@saadthayab
@saadthayab 2 жыл бұрын
thank you
@suppotdekimjong-un5615
@suppotdekimjong-un5615 3 жыл бұрын
Thank you. I didn't understand what HEAD
@p_deges
@p_deges 2 жыл бұрын
thank you
@diabyalfa
@diabyalfa 2 жыл бұрын
Thanks
@hermessantos181
@hermessantos181 Жыл бұрын
thank you, mate, I was lost here...
@sleepingcrap5597
@sleepingcrap5597 2 жыл бұрын
"The famous conflict which everybody hates" aah those words really touched my soul
@cindyguan607
@cindyguan607 Жыл бұрын
great content, thank you! btw what is the extension that you are using which shows the branches?
@attamjotsinghkhurana4473
@attamjotsinghkhurana4473 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 ?
@shivajijadhav5300
@shivajijadhav5300 Жыл бұрын
thank you sir. git merge --abort
@jihadchakrane3562
@jihadchakrane3562 2 жыл бұрын
thx u so much
@ajitsakri9888
@ajitsakri9888 2 жыл бұрын
how can i get that git teminal UI
@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?
@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!
@yyypsycheguy
@yyypsycheguy 6 ай бұрын
Thanks for the vid. Just a quick question: what is the merge tool you are using here?
@abdelkrimeljaouhari2370
@abdelkrimeljaouhari2370 2 жыл бұрын
git status would not be happy more than me now , many thanks .
@polliluiz
@polliluiz Жыл бұрын
How did you setup the terminal with this git option in vscode?
@jonathanshitrit6344
@jonathanshitrit6344 4 жыл бұрын
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 жыл бұрын
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 жыл бұрын
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?
@priyadosapatia3857
@priyadosapatia3857 4 жыл бұрын
Can u please explain the same scenario with git extension
@TheMsnitish
@TheMsnitish 3 жыл бұрын
Loved the terminal theme. Can you share the colors ?
@user-by4vv5nv4v
@user-by4vv5nv4v Ай бұрын
it is windows termilal theme made with "Oh My Posh"
@fasousa1000
@fasousa1000 Жыл бұрын
Could you tell me which extension you use to see the branch on the terminal? Thanks
@sensai7213
@sensai7213 2 күн бұрын
Thx for the video. What about if you have multiple file conflicts? will you add git add. file1, file2, file3....?
@AFDG
@AFDG Жыл бұрын
What extensions do you use? Mine doesn't look as nice as yours. Thanks!
Git MERGE vs REBASE
16:12
Academind
Рет қаралды 1 МЛН
Git MERGE vs REBASE: The Definitive Guide
9:39
The Modern Coder
Рет қаралды 87 М.
Khó thế mà cũng làm được || How did the police do that? #shorts
01:00
She ruined my dominos! 😭 Cool train tool helps me #gadget
00:40
Go Gizmo!
Рет қаралды 64 МЛН
Мы никогда не были так напуганы!
00:15
Аришнев
Рет қаралды 4,9 МЛН
Khóa ly biệt
01:00
Đào Nguyễn Ánh - Hữu Hưng
Рет қаралды 21 МЛН
How to resolve Git conflicts using the diff3 format
7:11
Ihatetomatoes
Рет қаралды 8 М.
The EXTREMELY helpful guide to merge conflicts
8:22
Visual Studio Code
Рет қаралды 108 М.
git rebase - Why, When & How to fix conflicts
9:45
Philomatics
Рет қаралды 30 М.
Git rebase tutorial. Rebase vs Merge
7:48
Ihatetomatoes
Рет қаралды 100 М.
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1 МЛН
Resolve Git MERGE CONFLICTS: The Definitive Guide
8:02
The Modern Coder
Рет қаралды 30 М.
13 Advanced (but useful) Git Techniques and Shortcuts
8:07
Fireship
Рет қаралды 894 М.
Git merge and git conflicts
39:37
Hitesh Choudhary
Рет қаралды 16 М.
How to Resolve Merge Conflicts in Git | Open Source Bootcamp
24:17
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
ЗЕ МАККЕРС
Рет қаралды 154 М.
Low Price Best 👌 China Mobile 📱
0:42
Tech Official
Рет қаралды 719 М.
Best mobile of all time💥🗿 [Troll Face]
0:24
Special SHNTY 2.0
Рет қаралды 1,9 МЛН
Ультрабюджетная игровая мышь? 💀
1:00