I have a file that was tracked during development and pushed to remote upstream repo so that anyone who fork should get it.
Now this file is stable, no need to touch it anymore during development but it should still allow custom changes on each fork. These custom changes should just be local in fork and should not pollute upstream anymore.
These were tried:
An entry has already been added to .gitignore, but since the file was tracked before, this won't help.
Tried
git update-index --assume-unchanged file.xml
, this is good on my env., but it does not automatically updates all the forks about this.Tried
git rm --cached file.xml
, this is bad as this removes the file from the upstream. Although local copy is not deleted, but any new people who fork from now on won't get this file.
I would love to see some automatic way in git to achieve this. Otherwise I will have to go with 2. and ask each one whoever forked to run that command, which is real pain.