I have a file config.txt
that is tracked by git, it is downloaded on git clone
, but I don't want anybody changing and committing it i.e. if someone changes that file I don't want their changes to be tracked thus committed & accidentally pushed.
I still want to be able to add the potential changes of config.txt
later on, but in an explicit way(could be git add -f config.txt
or something else).
Also an extra step for doing this is not desirable so git update-index --skip-worktree
or git update-index --assume-unchanged
is not a good enough solution as it is prone to human error.
Is it possible to do so in git?