git – You have not concluded your merge (MERGE_HEAD exists)

git – You have not concluded your merge (MERGE_HEAD exists)

OK. The problem is your previous pull failed to merge automatically and went to conflict state. And the conflict wasnt resolved properly before the next pull.

  1. Undo the merge and pull again.

    To undo a merge:

    git merge --abort [Since git version 1.7.4]

    git reset --merge [prior git versions]

  2. Resolve the conflict.

  3. Dont forget to add and commit the merge.

  4. git pull now should work fine.

If you are sure that you already resolved all merge conflicts:

rm -rf .git/MERGE*

And the error will disappear.

git – You have not concluded your merge (MERGE_HEAD exists)

I think its worth mentioning that there are numerous scenarios in which the message You have not concluded your merge (MERGE_HEAD exists) could occur, because many people have probably arrived at this page after searching for said message. The resolution will depend on how you got there.

git status is always a useful starting point.

If youve already merged the contents to your satisfaction and are still getting this message, it could be as simple as doing

git add file
git commit

But again, it really depends on the situation. Its a good idea to understand the basics before attempting anything (same link Terence posted):
Git – Basic Merge Conflicts

Leave a Reply

Your email address will not be published.