git-lock
Lock a file in a Git repository from being modified by a commit. tldr-pages
On several platforms
Several platforms
Lock a file in a Git repository from being modified by a commit. Part of git-extras.
Disable the ability to commit changes of a local file
git lock path/to/fileIdentify