How to conclude your merge of a file?
Solution 1:
Check status (git status
) of your repository. Every unmerged file (after you resolve conficts by yourself) should be added (git add
), and if there is no unmerged file you should git commit
Solution 2:
Note and update:
Since Git1.7.4 (January 2011), you have git merge --abort
, synonymous to "git reset --merge
" when a merge is in progress.
But if you want to complete the merge, while somehow nothing remains to be added, then a crude rm -rf .git/MERGE*
can be enough for Git to forget about the current merge.