Is there a name for the merge conflict syntax Git uses?

When one gets a conflict, the conflict(s) are marked in the file as:

<<<<<<< HEAD
    <p>Once she climbed a tree and then forgot how to climb back down again</p>
    <p>Once, forgot where her food bowl was and was hungry all day</p>
>>>>>>> prequel

Is there a name for this syntax? It seems pretty common across VCSs.

  • GIT: Appending a patch made after a few commits
  • Git push to non-bare repository confusion
  • What are possible issues with Git / Mercurial in small developer team?
  • Are DVCS like Git inappropriate for teams using continuous integration?
  • Is there any distributed revision control system that supports partial checkout/clone?
  • Using Mercurial locally, only with Subversion server
  • Git: Remote Branch Availability on Clone of Clone
  • can we add merge --no ff in .gitattributes file without modifying gitconfigs
  • Git/SVN for development instead of VSS?
  • Gitlab: Show unmerged commits over N git repos
  • rebase in progress. Can not commit. How to proceed or stop (abort)?
  • Git: how to unignore all Symfony vendor files?
  • 2 Solutions collect form web for “Is there a name for the merge conflict syntax Git uses?”

    Git calls this “conflict markers”

    Git automatically adds conflict markers to the affected areas. A conflict-marked area begins with <<<<<<< and ends with >>>>>>>. These are also known as the conflict markers. The two conflicting blocks themselves are divided by a =======.

    Mercurial uses similar wording

    At this point, what happens depends on how Mercurial is configured (see MergeToolConfiguration). Per default, Mercurial inserts a set of markers into the files to be merged in your working copy:

    Non-distributed systems? Subversion uses “confict markers”

    The strings of less-than signs, equal signs, and greater-than signs are conflict markers, and are not part of the actual data in conflict.

    The granddaddy of them all, CVS, also calls them conflict sections

    Inside a file with conflicts, there are one or more conflict sections. Each one begins with “<<<<<<<“, followed by the section as found in your local file (or the first argument to cvs checkout if you’re doing a merge), followed by “=======”, followed by the other conflicting version, followed by “>>>>>>>”.

    It seems like “conflict markers” are the usual way to refer to these. Some of these docs are official and some are made by third parties, but they all use similar wording.

    In complement to the accepted answer: these markers are also used by the diff3 tool, hence this particular syntax is sometimes called “diff3 conflict markers”.

    Git Baby is a git and github fan, let's start git clone.