If you have a problem similar to this

[~/example_repo] git review
remote: error: branch refs/publish/master: 
remote: You need 'Create' rights to create new references. 
remote: User: foo
remote: Contact an administrator to fix the permissions 
remote: 
remote: Processing changes: refs: 1
remote: Processing changes: refs: 1, done 
To ssh://gerrit.example.org:29418/example_repo.git
! [remote rejected] HEAD -> refs/publish/master (prohibited by Gerrit: not permitted: create)
error: failed to push some refs to 'ssh://foo@gerrit.example.org:29418/example_foo.git'

Step-by-step guide

  1. Check that your version of git-review is >= 1.28
    1. git review --version
      git-review version 1.28.0
  2. If your version of git-review is not 1.28 or greater, upgrade it
  3. Try your review again after the upgrade


Linux Foundation Gerrit Usage Guide