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...


 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. 

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to