Forcing 'git merge' to declare all differences as a merge conflict

前端 未结 3 887
一生所求
一生所求 2021-02-09 19:20

In a \'git merge \' I would like any difference, even if not normally a merge conflict, to be considered a merge conflict. Then, with \'git mergetool\' I can see and resolve ea

3条回答
  •  滥情空心
    2021-02-09 19:50

    You may want to try:

    git merge --no-commit
    

    Which will make GIT not commit the merge changes. Alternatively if you want it to commit when there are no conflict, but not to lose the source branch, it's no-ff:

    git merge --no-ff
    

    Both can be used if necessary.

    More info here: Why does git fast-forward merges by default?

提交回复
热议问题