When working with Gerrit, the expected push :
git push origin HEAD:refs/for/branch
But some bad guys seem to do it in a simple way (they learned from some Git manual):
git push origin
or
git push
This operation will cause serious problems:
- A fixed connection is merged directly into the main (or default) branch on the remote server.
- Although the guys write some kind of commit message, but
git log can'not can't find them. - Perhaps more ...
Is there a way to disable this push operation in Gerrit settings? Or disable it on the client?
source share