You have not concluded your merge(MERGE HEAD exists).hint: Please, commit your changes befo
git代码提交、推送报错
1. You have not concluded your merge(MERGE HEAD exists).hint: Please, commit your changes beforemerging.Exiting because of unfinished merge
2. error: You have not concluded your merge (MERGE_HEAD exists).
3. Cannot check the working tree for unmerg!files because of an error…
问题出现的原因:
1. 代码冲突!,未合并完代码就退出了(提交并推送)。
2.代码未更新就改了同一个文件同一行。
解决方案
1.终止合并git merge --abort
2.恢复合并git reset --merge ,重新拉取代码。git pull
如果到这里还没解决的话
那就看看有没有提交代码未推送出去的,撤回提交,再推送,撤回之前记得备份一份自己写的代码。
文章版权声明:除非注明,否则均为主机测评原创文章,转载或复制请以超链接形式并注明出处。