Step 01 / 13
In this chapter
In chapter 4, Git merged everything on its own. But sometimes it stops and asks for your help: that's a conflict. The good news: it's normal, it happens to everyone, and you always resolve it the same way.
By the end of this chapter, you will be able to:
- Explain why a conflict happens
- Find the conflicted files with git status
- Read the conflict markers in a file
- Choose the right version: yours, the other one, or a mix of both
- Finish the merge with git add and git commit
- Cancel a merge with git merge --abort