What constitutes a merge conflict in Git?

前端 未结 3 1555
忘了有多久
忘了有多久 2020-12-02 12:19

How does git determine that a particular merge has a conflict and what the conflict is?

My guess would go something like this: if the two commits being merged have a

3条回答
  •  时光取名叫无心
    2020-12-02 12:47

    I don't think the merge algorithm has anything special with Git: it is a classic 3-way merge algorithm (not the Codeville one), which can be used with several strategies (default: recurse, or resolve or octopus). The result is a fairly simply merge process which is described here.
    Any visualization need is then delegated to third-party merge/diff tools.

提交回复
热议问题