I have a certain file in my repo that I have set the assume unchanged bit on:
git update-index --assume-unchanged someFile.txt
Once in a while, after some work on the repo, that bit is unset and the file is automagically not assume-unchanged
anymore.
Who's touching it? How can I make this permanent until I explicitly tell git to:
git update-index --no-assume-unchanged someFile.txt
What's going on here?
Edit: I'm using the assume-unchanged bit on configuration files that change locally, and should never ever be committed, not to mention pushed upstream. I don't want to see them in git status
, nor anywhere else, unless I explicitly tell git I want to edit and commit one of them.
Edit: OK, I think I managed to reproduce the issue.
I committed the file from a different repo (which didn't have it as --assume-unchanged
), pulled on my repo, and sure enough, the bit was reset.
So two questions arise:
- Is it possible to set this bit on the central authoritative repo so that it propagates to all repos?
- Is it possible to make this bit sticky, even after remote changes to it?