Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git "You have not concluded your merge" and nothing to commit?

Tags:

git

Whenever I try to push in Git I get this:

You have not concluded your merge (MERGE_HEAD exists). Please, commit your changes before you can merge. 

Running git status I get:

# On branch master nothing to commit (working directory clean) 

Or running git ls-files -u I get nothing.

Running git add .and trying again makes no difference.

What's up?

like image 506
Tower Avatar asked Feb 04 '12 18:02

Tower


People also ask

How do I conclude a merge in git?

After a git merge stops due to conflicts you can conclude the merge by running git merge --continue (see "HOW TO RESOLVE CONFLICTS" section below). Commits, usually other branch heads, to merge into our branch.

How do you finish a merge?

The traditional way of completing a merge after resolving conflicts is to use ' git commit '. Now with commands like ' git rebase ' and ' git cherry-pick ' having a ' --continue ' option adding such an option to ' git merge ' presents a consistent UI.


1 Answers

Okay I finally found answer: git commit -m "Test" apparently fixed this. The result was an empty commit with no changes whatsoever. Even Github shows an empty commit, but it works.

like image 84
Tower Avatar answered Oct 11 '22 13:10

Tower