Manual Resolution

suggest change

While performing a git merge you may find that git reports a “merge conflict” error. It will report to you which files have conflicts, and you will need to resolve the conflicts.

A git status at any point will help you see what still needs editing with a helpful message like

On branch master
You have unmerged paths.
  (fix conflicts and run "git commit")

Unmerged paths:
  (use "git add <file>..." to mark resolution)

    both modified:      index.html

no changes added to commit (use "git add" and/or "git commit -a")

Git leaves markers in the files to tell you where the conflict arose:

<<<<<<< HEAD: index.html
<div id="footer">contact : email@somedomain.com</div>
=======
<div id="footer">
please contact us at email@somedomain.com
</div>
>>>>>>> iss2: index.html

<<<<<<< marks the start of the current branch (HEAD). ======= separates the two sides. >>>>>>> marks the end of the other branch (iss2). Edit the file so only the content you want remains, and delete the marker lines. Then git add index.html to mark it resolved and git commit to finish the merge.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents