美文网首页
Git报错:error: You have not conclu

Git报错:error: You have not conclu

作者: Jonath | 来源:发表于2019-10-18 10:13 被阅读0次

导致报错:error: You have not concluded your merge (MERGE_HEAD exists).的原因可能是在以前pull下来的代码自动合并失败

解决办法一:保留本地的更改,中止合并->重新合并->重新拉取

git merge --abort
git reset --merge
git pull

解决办法二:舍弃本地代码,远端版本覆盖本地版本(慎重)

git fetch --all
git reset --hard origin/master
git fetch

相关文章

网友评论

      本文标题:Git报错:error: You have not conclu

      本文链接:https://www.haomeiwen.com/subject/atfimctx.html