Although I love the git history rewrite feature, how does one go about ensuring history isn’t rewritten.
We dont mind what a programmer does on their own machine, but we need to ensure that a version is not pushed to the server that changes history.
ie We need to guarantee that a particular version from the past really was that version. So this would include preventing someone going through and permanently removes a file from the history, or permanently alters a file throughout all history.
If you can run:
on the server, that should take care of rewriting history case being pushed to said server.
However that is for the all repo, not for a specifc file or group of files.
git config:As ebneter (who knows the importance of a coherent repository — see the answer about SVN to Git migrations [question now deleted, 10K+ users only]) comments:
git config: