Git /
ConflictsConflicts occur when merging branches that both changed the same part of the tracked files. When this happens, git can't perform both changes and marks a conflict within the affected file. Usually, conflicts will be marked as: <<<<<<< HEAD The content of the current file ======= The content of the file in the branch to be merged in >>>>>>> Message of the latest commit to change that file To resolve conflicts, you just have to replace all of the above by the content you want, which is presumably a combination of both the current state and the merging branch's state. It is sometimes useful to see where the two branches diverged, the original content before either branches changed it, like: <<<<<<< HEAD The content of the current file ||||||| merged common ancestors The content of the ancestor file, before either branch changed it ======= The content of the file in the branch to be merged in >>>>>>> Message of the latest commit to change that file This can be achieved by changing your git configurations to a three way diff by typing:
You can then use a variety of tools to look at the example:
Using |