search

Home  >  Q&A  >  body text

git - source tree 代码冲突如何解决

推送到git hub上的代码修改过,和以前的版本不一致,source tree会出现代码冲突的提醒,怎么解决

曾经蜡笔没有小新曾经蜡笔没有小新2768 days ago750

reply all(3)I'll reply

  • 黄舟

    黄舟2017-05-02 09:23:23

    When your sourcetree merge code conflicts, you cannot submit the code.
    At this time, sourcetree will display merge conflicts. If you open your conflicting file, you will find that there are more things like this in it.
    >>>>>>
    ---
    <<<---
    <<<
    This contains your previous code and the code you pulled down. Check the following, and then delete the ones you don’t want.

    If there is no ready-made example of merge conflict at hand, I will not take a screenshot. 🎜

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-02 09:23:23

    Please see my article address:
    /a/1190000002951154

    reply
    0
  • 大家讲道理

    大家讲道理2017-05-02 09:23:23

    The general process is that you first pull down the remote A branch, resolve the conflicts locally, and then submit to the remote A branch. That way the situation you mentioned won't happen.

    reply
    0
  • Cancelreply