Step 01 / 13
In this chapter
In chapter 4, Git merged on its own. But sometimes it stops and asks for your help: that's a conflict. Good news: it's normal, it happens to everyone, and it's always resolved with the same method.
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
- Finish the merge with git add and git commit
- Cancel a merge with git merge --abort