Merge conflict resolution

后端 未结 5 1576
执笔经年
执笔经年 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:42

    You can configure a (graphical) merge tool and use that tool to do the conflict resolution.

    Also have a look at the git mergetool command - if you have one of the pre-defined tools installed or have configured some other tool, it will open up the tool for resolution http://schacon.github.com/git/git-mergetool.html

    If you are interested in GUI tools, you need not worry about what the notations really mean, as the GUI tool will help you to easily make the resolutions. Just understand that the parts marked with ===== and >>>>> are the conflict sections.

提交回复
热议问题