Git merge conflict to always take the newest file

后端 未结 4 1299
忘了有多久
忘了有多久 2020-12-09 21:04

How can I make a git conflict ALWAYS get resolved by taking the newest file (latest changed timestamp), completley without a prompt?

I am building a syncscript with

4条回答
  •  -上瘾入骨i
    2020-12-09 21:18

    I think you will have to write your own merge-driver for this. See "git help gitattributes", the "Defining a custom merge driver" sections for details on how to do just that.

提交回复
热议问题