我是靠谱客的博主 大胆金针菇,最近开发中收集的这篇文章主要介绍git问题之Unmerged paths: (use "git add ..." to mark resolution)1.问题描述2.解决方案 ,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
1.问题描述
MacBook-Pro:gupaoedu gaoxinfu$ git pull
error: Pulling is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.
MacBook-Pro:gupaoedu gaoxinfu$ git status
On branch master
Your branch and 'origin/master' have diverged,
and have 1 and 11 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)
You have unmerged paths.
(fix conflicts and run "git commit")
(use "git merge --abort" to abort the merge)
Changes to be committed:
···
ple01/DemoNacosConfigController.java
new file:
3.分布式与微服务/3.5.分布式服务治理/3.5.29-30.Apache Nacos配置中心的应用及原理分析(上下)/demo/demo-gupao-nacos-example01/src/main/java/com/gaoxinfu/demo/gupao/nacos/demogupaonacosexample01/DemoNacosSdk.java
new file:
3.分布式与微服务/3.5.分布式服务治理/3.5.29-30.Apache Nacos配置中心的应用及原理分析(上下)/nacos-demo.zip
modified:
README.md
Unmerged paths:
(use "git add <file>..." to mark resolution)
both modified:
3.分布式与微服务/3.5.分布式服务治理/3.5.17-18.ApacheDubbo的基本认识/demo/demo-gupao-dubbo-example02/.idea/workspace.xml
2.解决方案
1.说明本地和远程的东西同时修改了workspace.xml文件,直接还原本地即可
MacBook-Pro:gupaoedu gaoxinfu$ git reset --hard FETCH_HEAD
HEAD is now at 715da29 更新 README.md
MacBook-Pro:gupaoedu gaoxinfu$ git pull
Already up to date.
MacBook-Pro:gupaoedu gaoxinfu$ git pull
Already up to date.
MacBook-Pro:gupaoedu gaoxinfu$ cd
最后
以上就是大胆金针菇为你收集整理的git问题之Unmerged paths: (use "git add
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复