You have not concluded your merge (MERGE_HEAD exists)

来源:互联网 发布:数控编程工资月薪过万 编辑:程序博客网 时间:2024/06/05 03:31

遇到这么一个问题:

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

问题的原因是, 以前的pull 之后merge 失败, git 进入conflict 状态。
解决办法:

1) Undo the merge and pull again.

To undo a merge:

git merge --abort [Since git version 1.7.4]

git reset --merge [prior git versions]

2) Resolve the conflict.

3) Don’t forget to add and commit the merge.

4) git pull now should work fine.

0 0
原创粉丝点击