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.
-
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] -
Resolve the conflict.
-
Dont forget to add and commit the merge.
-
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