Per discussion in the git book and on stackoverflow: http://stackoverflow.com/questions/1754491/is-there-a-way-to-configure-git-repository-to-reject-git-push-force http://git-scm.com/book/en/Customizing-Git-An-Example-Git-Enforced-Policy Set these values on the git repo you want to protect: git config receive.denyNonFastforwards true git config receive.denyDeletes true This may also be set as a system wide default … Continue reading
Preventing git nonfastforward (–force) pushes
2013-02-14 | 0 comments