iOS开发前了个端

git 常见报错

2018-02-28  本文已影响7人  刘勇虎
  1. refusing to merge unrelated histories : 拒绝合并无关的历史

teminal中输入

git pull origin master --allow-unrelated-histories

  1. Automatic merge failed; fix conflicts and then commit the result. : 自动合并失败 ,文件存在冲突

文件

teminal中输入

git status

我的terminal输出

On branch master
You have unmerged paths.
  (fix conflicts and run "git commit")
  (use "git merge --abort" to abort the merge)

Changes to be committed:

    new file:   README.md

Unmerged paths:
  (use "git add <file>..." to mark resolution)

    both added:      9B189104-4E9C-4A19-8592-E40E09454EE8.codesnippet
    both added:      A4EDA56B-0221-48B7-B6F1-EDDA4ED3EFBA.codesnippet
    both added:      C0C3AF9F-0A73-4EC4-8550-4E12748F6D43.codesnippet

错误信息中提示:不能合并的路径为

  1. 9B189104-4E9C-4A19-8592-E40E09454EE8.codesnippet
  2. A4EDA56B-0221-48B7-B6F1-EDDA4ED3EFBA.codesnippet
  3. C0C3AF9F-0A73-4EC4-8550-4E12748F6D43.codesnippet

三个文件,用xcode打开文件修改文件,保留最新版本。提交文件修改到远程仓库。

   
   
   

友情链接:

技术博客        简书主页

上一篇下一篇

猜你喜欢

热点阅读