error: You have not concluded your merge (MERGE_HEAD exists).

原因:pull下来的代码没有自动合并导致的.或是在以前pull下来的代码自动合并失败


解决方案:

解决办法一:

$:git merge --abort     中止合并
$:git reset --merge     重新合并
$:git pull              重新拉取

解决办法二:舍弃本地代码,远端版本覆盖本地版本(慎重)

$:git fetch --all
$:git reset --hard origin/master
$:git fetch

Git fetch和git pull的区别:

都可以从远程获取最新版本到本地

  1. Git fetch:只是从远程获取最新版本到本地,不会merge(合并)
$:git fetch origin master   //从远程的origin的master主分支上获取最新版本到origin/master分支上
$:git log -p master..origin/master //比较本地的master分支和origin/master分支的区别
$:git merge origin/master          //合并
  1. Git pull:从远程获取最新版本并merge(合并)到本地
$:git pull origin master  //相当于进行了 git fetch 和 git merge两部操作

实际工作中,可能git fetch更好一些, 因为在merge前,可以根据实际情况决定是否merge

【git】You have not concluded your merge (MERGE_HEAD exists).相关推荐

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

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

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

    git merge --abort   //中止合并 git reset --merge   //撤销合并 git pull            //拉去代码

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

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

  4. 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). 解决办法一:保 ...

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

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

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

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

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

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

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

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

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

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

最新文章

  1. 摩根上调 思科股票评级至增持
  2. Python之目录结构
  3. 观《phonegap第三季 angularjs+ionic视频教程 实时发布》学习笔记(一)
  4. 开源CDN加速管理工具 OpenCDN
  5. volatile 关键字
  6. Vsftpd服务的部署及优化
  7. 关于盘符里某些文件夹删除不了的解决方案研究
  8. Day 4-7 -configparser模块
  9. SharpHsql -- 只适合用于演示数据的数据库引擎
  10. 《iOS8 Swift编程指南》类书图像
  11. 学习HTML5+CSS3的第二天
  12. j2ee中文编码问题的解决方法(ISO8859_1、GBK、UTF-8)
  13. MySQL-第五篇视图
  14. Vulkan开发实战详解
  15. 嵇少峰:互联网金融草根时代终结
  16. 使用Arduino连接一个LCD显示屏
  17. python中mapping_python-学习-ORM中遇到的 mapping 详解并再总结字典dict
  18. Window7开机速度有点慢的解决办法
  19. 紧急通知!赶紧删除黄片,否则拘留15天,罚款3000元。
  20. python程序设计第二章序列类型 题库及选解

热门文章

  1. 续2:股票交易一点感悟和程序化交易实战
  2. 光学雨量计对比翻斗式雨量计的优势
  3. Dbus启动问题 Failed to get D-Bus connection: Operation not permitted
  4. 英文和数字手写数据集
  5. 解决邮件附件乱码问题
  6. 网页代码扒ppt_在网页中在线浏览ppt文档
  7. 【JAVA_POI】解析PPT文档(ppt和pptx)4.1.2版本
  8. iframe父页面与子页面如何传值
  9. python的sqlite数据库_Python操作SQLite数据库
  10. 【深度首发】死磕“2D转3D”的聚力维度,能否成为影视人工智能行业的独角兽?丨Xtecher 封面