Merge conflict resolution

后端 未结 5 1573
执笔经年
执笔经年 2021-01-31 07:35

When there\'s a merge conflict in Git, junk like the following is inserted into the conflicting files. Three questions:

  1. How do you read these annotations?
5条回答
  •  天涯浪人
    2021-01-31 07:51

    <<<< HEAD #Where the conflict starts
    
    #Previous Revision
    
    ========== # The point where things look iffy
    
    #Things that changed
    
    >>>>> New Commit # Point where the conflict ends
    

    Mac's Xcode comes with FileMerge which can be accessed on the command line with opendiff.

    git mergetool -t opendiff

提交回复
热议问题