首页 > 其他 > 详细

Git冲突:You have not concluded your merge

时间:2019-02-01 10:40:18      阅读:312      评论:0      收藏:0      [点我收藏+]

You have not concluded your merge. (MERGE_HEAD exists)

Git本地有修改如何强制更新

我尝试过用git pull -f,总是提示 You have not concluded your merge. (MERGE_HEAD exists)

我需要放弃本地的修改,用远程的库的内容就可以,应该如何做?傻傻地办法就是用心的目录重新clone一个!
正确的做法应该是:

  • git fetch --all
  • git reset --hard origin/master
  • git fetch 只是下载远程的库的内容,不做任何的合并git reset 把HEAD指向刚刚下载的最新的版本

参考链接:

Git冲突:You have not concluded your merge

原文:https://www.cnblogs.com/gitwow/p/10344766.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!