0

I am trying to figure out a way to keep a file in a repository and just not track future changes to it.

Gitignore not working and https://git-scm.com/docs/gitignore lead me to believe that this is not possible, because the file is in the repository. Thus my question is, is there a way to ignore future changes to a file that we need, but just want to keep individuals from unintentionally editing it?

Brian
  • 556
  • 6
  • 26
  • https://stackoverflow.com/search?q=%5Bgit%5D+commit+file+ignore+future+changes – phd Jan 24 '22 at 16:41
  • 1
    `git update-index --skip-worktree FILENAME` for everyone in the team. There is no centralised way. – phd Jan 24 '22 at 16:42

0 Answers0