我是靠谱客的博主 大胆金针菇,这篇文章主要介绍git问题之Unmerged paths: (use "git add ..." to mark resolution)1.问题描述2.解决方案 ,现在分享给大家,希望可以做个参考。
1.问题描述
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27MacBook-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
21.说明本地和远程的东西同时修改了workspace.xml文件,直接还原本地即可
复制代码
1
2
3
4
5
6
7
8MacBook-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
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复