I want to ignore a certain file from being overwritten regardless of whether there are changes. I have the following in /etc/gitconfig
:
[merge "ours"]
driver = true
And in the repository itself, in .git/info/attributes
:
files/somefile.txt merge=ours
However, when I run git pull
, the somefile.txt
file is being overwritten regardless. Have I got this configured wrongly, or is there something I'm not understanding properly?