Git · Branches and integration

Merge conflict markers

Conflicts mark your side, the incoming side and the common base. Edit the file, remove markers, then stage it.

Syntax
<<<<<<< HEAD

Example

Example
# inside the conflicted file
<<<<<<< HEAD
const timeout = 3000;
=======
const timeout = 5000;
>>>>>>> feature/auth

More in this group

git branch git checkout git cherry-pick git merge git merge --abort git switch git worktree

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course