您的位置:首页 > 其它

git pull失败:You have not concluded your merge (MERGE_HEAD exists)

2017-01-11 00:00 435 查看
git pull时遇到错误:

localhost:~ lipengfei$ git pull
You have not concluded your merge (MERGE_HEAD exists).
Please, commit your changes before you can merge.

出现这个错误可能是因为之前PULL下来的代码没有自动合并。
git merge --abort
失败后,用以下方法解决,把本地修改另存一份,然后从线上pull下来最新的代码,覆盖本地代码,然后再把本地修改恢复

git fetch --all
git reset --hard origin/master
git pull
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  git
相关文章推荐