...

/

Merge Conflicts

Merge Conflicts

Learn about merge conflicts and how they occur by reading through this lesson.

What is a merge conflict?

Merge conflicts occur, most commonly, when more than one contributor is working on a project. A merge conflict takes place when a file changes at the same line in different branches or if a file is deleted in one branch, but in another, its contents are updated. When the branches are merged, Git won’t be able to infer which change it should keep and which one it should discard. At this point, it becomes necessary for a developer to ...