I know this might have been asked before but I would like to understand the issue. I am trying to push a newly-created branch from my local repository to the remote repository. Here are the actions that I've taken:
Total 0 (delta 0), reused 0 (delta 0)
remote: Processing changes: refs: 1, done
To 'remote repository URL'
! [remote rejected] Newbranch -> Newbranch (prohibited by Gerrit)
error: failed to push some refs to 'remote repository URL'
For creating and pushing a new branch to the remote repository, you should :
git checkout -b [new_branch_name] git push -u origin [new_branch_name]
For resolving the error you are facing :
[remote rejected] Newbranch -> Newbranch (prohibited by Gerrit) error: failed to push some refs to 'remote repository URL'
you should check your user credentials with the system administrator, since he should first grant the permission to create a new branch, to your user account.
The permission configurarion for
Gerrit is completely explained in the documentations.