So I can do something like this: Stop tracking files in git (without deleting them)
But this only affects my git.
There are some default settings file that is already tracked in the remote repository, how do I remove the tracking on that file without deleting the files? I don't want to remove it from the remote repository but that file is necessary to run the application, so anyone doing fresh install needs that file, so they should have that file when they do git clone.
But for development, anyone of the devs can make changes to the files, but those changes SHOULD NEVER be tracked, only the default value should persist in the remote repository.
I tried adding the files to .gitignore list, but it doesn't work - because it's already being tracked, I assume? I would like for everyone to have that file, but everyone should not be able to make changes to the file.
So how do I do this?