How to stop direct git push when using gerrit?

145 views
Skip to first unread message

William

unread,
Apr 26, 2022, 6:09:11 PM4/26/22
to Repo and Gerrit Discussion
Hi

Is there a way to stop direct "git push" to branches when we are using gerrit?

Makson Lee

unread,
Apr 27, 2022, 4:11:54 AM4/27/22
to Repo and Gerrit Discussion
Don't grant the push permission to refs/heads/* to users.

https://gerrit-review.googlesource.com/Documentation/access-control.html#category_push
Reply all
Reply to author
Forward
0 new messages