Git提示You have not concluded your merge. (MERGE_HEAD exists)
Posted aeolian
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Git提示You have not concluded your merge. (MERGE_HEAD exists)相关的知识,希望对你有一定的参考价值。
Git原理
git fetch
是将远程主机的最新内容拉到本地,用户在检查了以后决定是否合并到工作本机分支中。
而git pull
则是将远程主机的最新内容拉下来后直接合并,即:git pull = git fetch + git merge
,这样可能会产生冲突,需要手动解决。
解决方案
① 保存本地代码
② 执行git fetch --all,检查有无冲突
③ 执行git reset --hard origin/master ----> git reset 把HEAD指向刚刚下载的最新的版本
④ commit代码
⑤ psh代码
参考:
https://blog.csdn.net/daotiao0199/article/details/82757056
https://www.cnblogs.com/runnerjack/p/9342362.html
以上是关于Git提示You have not concluded your merge. (MERGE_HEAD exists)的主要内容,如果未能解决你的问题,请参考以下文章
GIT error: You have not concluded your merge (MERGE_HEAD exists)
GIT error: You have not concluded your merge (MERGE_HEAD exists)
You have not concluded your merge. (MERGE_HEAD exists)。(转)
You have not concluded your merge. (MERGE_HEAD exists)。(转)
git pull 报错 You have not concluded your merge (MERGE_HEAD exists).