Error: You Have Not Concluded Your Merge (merge_head exists)

Error: You Have Not Concluded Your Merge (merge_head exists)

Git a very useful version control system. While working on Git, you should face some problem that kills you few mins to study and solve. Sometimes we got this error message (Source Tree pull You have not concluded your merge (MERGE_HEAD exists)?) while we are working with any Git command. It’s a weird issue and sometimes very dangerous. Here I have shared very short tips to overcome this problem.

Why It happened?

It happened because your last pull failed to merge automatically and it became conflict state. And without fixing the conflict before next pull or push, you will see this error.

What’s the solutions?

To solve Error: You Have Not Concluded Your Merge (merge_head exists) problem, there is a simple solutions. Follow these steps –

  1. Undo the merge and again pull

    Run the following command to undo the merge.
    git merge --abort (since git version 1.7.4)
    git reset --merge (prior git version)

    error: you have not concluded your merge (merge_head exists).

  2. Resolve the conflict

    To resolve conflict using command line, you can follow this tutorial.

  3. Add & commit the merge

    To add run git add .
    and to commit run git commit -m "commit message"

  4. Pull again

    Now git pull should work without error. To pull again, run git pull

Hope, this will help you to solve your problem of error: you have not concluded your merge (merge_head exists). Please leave a comment for others if this solutions works or not!

Shaharia is a professional software engineer with more than 10 years of experience in the relevant fields. Digital ad certified, cloud platform architect, Big data enthusiasts, tech early adopters.

Sharing is Awesome, Do It!

Share this post with your friends
close-link