I'm struggling to push changes to Gerrit by git review command.
Till now, I've performed the following steps:
Installed a Gitblit server on my local pc as per official documentation.
Installed Gerrit as per this tutorial.
Now, to push the changes for review, I performed the following operations.
git clone http://admin@localhost:8008/r/testrepo.git
modified some files
git add .
git commit -m 'my_trial_commit'
Everything worked fine till now, but when I run the git review -R
for submitting new changes for review, I get the following error.
git review -R
To http://localhost:8008/r/testrepo.git
! [remote rejected] HEAD -> refs/for/master (testrepo.git is not configured to receive patchsets)
error: failed to push some refs to 'http://admin@localhost:8008/r/testrepo.git'
It seems you're pushing to GitBlit, not Gerrit, because the error comes from GitBlit code. Try again, pushing to the Gerrit HTTP or SSH port.
Also, why GitBlit? The recommended (and supported) code repository browser is Gitiles (included as core plugin since 3.0).