Not really afaik, you can make file immutable with chattr +i /path/to/something but that means you cannot write to it either, which will probably cause problems.
chattr +i /path/to/something
git gud?
Not really afaik, you can make file immutable with
chattr +i /path/to/something
but that means you cannot write to it either, which will probably cause problems.