I want git to never have a conflict on this file:
test/file.txt
when merging.
I tried the following in .gitattributes
test/file.txt merge=theirs
but I need to define the theirs
merge strategy. I saw online that I can define the ours
strategy by executing this:
git config --global merge.theirs.driver true
which sets the driver to true (bash true) which will keep the local file instead of the new one.
I want to do the opposite. How can I define the theirs
driver to get the new copy and discard the local one when merging (after a git pull)?