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. 

-- 
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 
https://groups.google.com/d/msg/git-users/-/fjz-_aEzssoJ.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to