【问题标题】:CONFLICT (content): Merge conflict inCONFLICT(内容):合并冲突
【发布时间】:2015-09-12 09:36:04
【问题描述】:

我正在尝试使用 git 推送一个项目,但我总是遇到这些冲突。

Auto-merging App.xcodeproj/xcuserdata/user.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
CONFLICT (content): Merge conflict in App.xcodeproj/xcuserdata/user.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
Auto-merging .gitignore
CONFLICT (content): Merge conflict in .gitignore
Automatic merge failed; fix conflicts and then commit the result.

我添加了App.xcodeproj/xcuserdata/user.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist.gitignore 之后我开始在该文件上遇到冲突。

除了git-pull 会删除我项目中的大部分文件之外,我还能做什么。

【问题讨论】:

    标签: git github conflict git-push git-pull


    【解决方案1】:

    我试过这个:

    git pull --rebase https://github.com/yours master/name of your branch
    

    经过一番解决后,我解决了这个问题。

    【讨论】:

    • 不确定我是否应该删除这个问题
    【解决方案2】:

    只需编辑.gitignore 文件,解决冲突,然后将其添加到索引中,然后提交。

    【讨论】:

    • 嗯,这就是我所做的。我在答案中解释了这一点
    猜你喜欢
    • 2019-10-18
    • 2020-02-28
    • 2011-08-20
    • 2017-03-04
    • 2011-03-13
    • 2017-07-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多