Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

how to disable <<<<<<< HEAD message when merging from the code.

rubinyoo August 6, 2013

Also, what does that message mean? <<<<<<< HEAD and some number 1280930129839asdf

1 answer

0 votes
MB
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 6, 2013

That message tells you where the conflicts exist after you tried to merge two versions of a file, when git couldn't figure it out itself how to properly merge the changes. Shortly, git couldn't merge the changes automatically, so it wrote markers at those places (where changes couldn't be automatically merged) for you to look at it and fix it manually.

You can read this article, to get a better understanding of that: http://genomewiki.ucsc.edu/index.php/Resolving_merge_conflicts_in_Git

For example, if you have a merge conflict and you ended up with something like this:

&lt;&lt;&lt;&lt;&lt;&lt;&lt; HEAD:mergetest
 This is my third line
 =======
 This is a fourth line I am adding
 &gt;&gt;&gt;&gt;&gt;&gt;&gt; 4e2b407f501b68f8588aa645acafffa0224b9b78:mergetest

you will edit that text and make it look something like this:

This is a correct text now and it should have been here if the git could merge the files successfully.

So, you'll replace that entire block with a valid text, that should stay there (also removing those markers that start with "<<<<<<<", "=======" and ">>>>>>>").

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events