I already added receive.denyNonFastforwards and receive.denyDeletes on my git central repo server. Now I would like to block local history modifcation if the commit was already pushed to the central repo (just like mercurial does by default), I suppose I can use a hook but I couldn't find any example.
Is this a strange configuration?
It sounds like a basic safeguard that anyone using git should have activated and I'm quite surprised for the lack of example hooks.