How do I dissalow history rewrite in a given repo?

Showing 1-2 of 2 messages
How do I dissalow history rewrite in a given repo? Brian Jones 5/15/12 7:47 PM
How can I implement a policy for select git repos that prohibits any action that would rewrite history? This includes push, pull, or self-inflicted wounds by those working in the repo directly. I've found...

http://stackoverflow.com/questions/2085871/strategy-for-preventing-or-catching-git-history-rewrite
    
 git config --system receive.denyNonFastforwards true
git config --system receive.denyDeletes true

...but I'm not sure this covers the self-inflicted cases. It looks like this just covers the push/pull cases.

Re: How do I dissalow history rewrite in a given repo? Thomas Ferris Nicolaisen 5/15/12 11:50 PM
Hi Brian,

Could you give a more concrete example of these self-inflicted cases?

Do you mean that you want to prohibit people from rewriting history in their own local repositories?