本文转自:http://yijiebuyi.com/blog/5b55eb51ad49ce41e2de9c85dd4513ca.html 今天获取git线上仓库代码报了这个错误: zhangzhi@moke:~/code/ktsg-api$ git pull You have not concluded your merge (MERGE_HEAD exists). Please, commit your changes before you can merge. 错误可能是因为在你以前pull…
报错一: You have not concluded your merge (MERGE_HEAD exists). Please, commit your changes before you can merge. 错误可能是因为在你以前pull下来的代码没有自动合并导致的. 解决方法: 1.保留你本地的修改 git merge --abort git reset --merge 合并后记得一定要提交这个本地的合并 然后在获取线上仓库 git pull 2.down下线上代码版本,抛弃本地的…