今天获取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下来的代码没有自动合并导致的.

有2个解决办法:

1.保留你本地的修改

git merge --abort

git reset --merge

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

然后在获取线上仓库

2.down下线上代码版本,抛弃本地的修改

不建议这样做,但是如果你本地修改不大,或者自己有一份备份留存,可以直接用线上最新版本覆盖到本地

git fetch --all

git reset --hard origin/master

git fetch

You have not concluded your merge (MERGE_HEAD exis相关推荐

  1. git:Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists)....

    Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists). 解决办法一:保 ...

  2. You have not concluded your merge (MERGE_HEAD exists)

    Git提交报错:error:You have not concluded your merge (MERGE_HEAD exists) 原因:pull下来的以前代码自动合并失败 解决 方法一:保留本地 ...

  3. You have not concluded your merge (MERGE_HEAD exists) git拉取失败

    本文转自:http://yijiebuyi.com/blog/5b55eb51ad49ce41e2de9c85dd4513ca.html 今天获取git线上仓库代码报了这个错误: zhangzhi@m ...

  4. git pull指令报错:error: You have not concluded your merge (MERGE_HEAD exists).

    使用git pull 指令时报错:error: You have not concluded your merge (MERGE_HEAD exists). 直接翻译上面的报错信息可知: 错误:您尚未 ...

  5. Git常用命令、及常见报错处理:You have not concluded your merge (MERGE_HEAD exists)

    一.常用命令 切换到master分支:git checkout master 查看已有本地及远程分支:git branch -a(先git pull拉下全部数据) 查看远程分支:git branch ...

  6. 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists).

    Git 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists). 开发新业务,拉取代码时,路由文件发生冲突,解决此文件 ...

  7. 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists)

    Git fetch和git pull的区别: 都可以从远程获取最新版本到本地 1.Git fetch:只是从远程获取最新版本到本地,不会merge(合并) $:git fetch origin mas ...

  8. git拉取报错:You have not concluded your merge. (MERGE_HEAD exists)

    You have not concluded your merge. (MERGE_HEAD exists) 原因 一般出现这种情况是没有完成上次的merge操作,就进行了pull操作,就会报这种错误 ...

  9. 【GitHub报错】You have not concluded your merge (MERGE_HEAD exists).解决方法

    git push出现错误: You have not concluded your merge (MERGE_HEAD exists). 原因可能是在以前pull下来的代码自动合并失败. 方法一:保留 ...

  10. 【git】You have not concluded your merge (MERGE_HEAD exists).

    error: You have not concluded your merge (MERGE_HEAD exists). 原因:pull下来的代码没有自动合并导致的.或是在以前pull下来的代码自动 ...

最新文章

  1. 登录文档服务器,服务器登录login
  2. Delphi - 对象构造浅析后续
  3. rz、sz 命令 安装(Xshell 安装)
  4. Win7休眠后唤醒出现黑屏的解决办法
  5. 数组(数组名)与指针辨异
  6. Hadoop设备实际上属于有待编排的超级计算机
  7. Linux FTP 服务器配置简单说明
  8. rds对mysql优化_RDS MySQL优化方案
  9. 电子设计大赛简易自动入库小车设计
  10. C10K问题—高并发网络IO模型
  11. 电机控制进阶3——PID串级控制(附全套代码下载)
  12. 愚人节里的巧合与必然:BAT等亮出的AI招牌故事
  13. 1999-2019,互联网失落者
  14. Java核心知识点精心整理(全是精华)
  15. ubuntu 超好用截图和标记图片工具shutter
  16. Java List转Map时发生Duplicate key
  17. LOJ #10155. 「一本通 5.2 例 3」数字转换
  18. 关于asc、txt格式到pcd、ply格式数据转换
  19. 最高补贴1000元/kW,山东光伏补贴来了
  20. 小程序实现滚动加载(懒加载)

热门文章

  1. 【雕爷学编程】Arduino动手做(66)---HC-SR501热释电传感器模块2
  2. Happy Problem【leetcode202】
  3. 罗胖面对客户的需求的一个不错的例子
  4. 古月居 ROS 21 讲7
  5. 职场小白,频繁问问题会不会被嫌弃?
  6. WPF Win7和Win10 TextBox 使能false时,背景色属性触发不生效问题
  7. 数控车循环指令应用与技巧!
  8. PythonPrimer
  9. ttf字体文件获取(windows内置常规208项字体)
  10. MongoDB管道操作符(二)