Disable direct push and allow Gerrit push

1k views Asked by At

Need to configure the Gerrit with below conditions

Dissable the direct push to GIT

Allow only push through GERRIT

Is this configuration can be done on gerrit?

Regards, Venkatesh

1

There are 1 answers

0
Marcelo Ávila de Oliveira On
  1. Go to Projects > List > > Access
  2. To "Dissable the direct push to GIT"

Do NOT set "ALLOW" permission or set "DENY" one to "refs/heads/*" reference

  1. To "Allow push through GERRIT"

Set "ALLOW" permission to "refs/for/refs/*" reference