Git

CONFLICT (content): Merge conflict in file.txt

Merge Conflict

Git cannot automatically merge because both branches changed the same lines.

Common Causes

Fixes

  1. 1. Open file and resolve markers
    <<<<<<< HEAD
    your changes
    =======
    their changes
    >>>>>>> branch
  2. 2. After resolving
    git add file.txt
    git commit -m 'Resolve merge conflict'
  3. 3. Abort merge
    git merge --abort

Still not fixed?

Related Errors

DuskTools That Might Help

All Errors