You have not concluded your merge (MERGE_HEAD exists)

来源:互联网 发布:软件开发人工费 标准 编辑:程序博客网 时间:2024/06/05 04:31

问题:git 提交文件,出现冲突

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

问题原因:

在提交文件之前,没有拉取最新代码,修改了同一个文件,出现冲突。
且在下次拉取之前没有解决冲突,因此再次pull代码,出现上诉问题提示。

解决:

1.撤销之前的merge文件,重新pull代码

撤销merge命令:
git merge --abort
git reset --merge

2.解决冲突
3.commit merge 信息
4.重新pull
0 0