I need to have a file on my repository that other developers can modify on their local copy while having Git ignore those changes.
Can't use git rm --cached <file> because the file is removed from the remote, making the file unavailable for future clones/pulls.
Can't use git update-index --assume-unchanged <file> nor git update-index --skip-worktree <file> because technically the file is still being tracked since git spits out this error message on any work tree overriding operations (e.g. git checkout or git merge) if the developer modifies the file:
"Please commit your changes or stash them before you switch branches. Aborting"
Can't add the file to .gitignore because it has been tracked already.
Is there any Git operation I can use to achieve this?
Thanks.