Error merging: fatal: You have not concluded your merge (MERGE_HEAD exists).

来源:互联网 发布:淘宝充气娃娃怎么样 编辑:程序博客网 时间:2024/05/16 16:15

错误:Error merging: fatal: You have not concluded your merge (MERGE_HEAD exists).



解决方案1:保留你本地的修改(推荐)

git merge --abort

git reset --merge

合并后记得一定要提交这个本地的合并

然后在获取线上仓库

git pull


解决方案2:down下线上代码版本,抛弃本地的修改

git fetch --all

git reset --hard origin/master

git fetch

解决方案3:删除分支,重新clone
阅读全文
0 0
原创粉丝点击