Force git custom merge driver for the purpose of merging pom.xml (maven) files

后端 未结 1 1436
梦毁少年i
梦毁少年i 2020-12-30 14:04

I\'ve got a custom git merge driver configured for pom.xml (Maven) files.

The configuration:

The .gitattributes

相关标签:
1条回答
  • 2020-12-30 14:16

    What you want is a custom merge strategy, and you have defined a merge driver.

    A driver is called only on conflicts, while a strategy is used anytime two commits are merged.

    See this answer for how to set up your solution:

    https://stackoverflow.com/a/23140455/6084013

    0 讨论(0)
提交回复
热议问题