How to conclude your merge of a file?

后端 未结 6 1504
天命终不由人
天命终不由人 2021-01-29 23:34

After I merged a file in Git I tried to pull the repository but error came up:

You have not concluded your merge. (MERGE_HEAD exists)

<
6条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-29 23:51

    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.

提交回复
热议问题