I made some changes, committed them and pushed the branch to Gerrit (git push gerrit
). Now my changes don't appear in Gerrit and I assume this is because I pushed the changes manually instead of using git review. When I run git review
now, Im getting this error:
remote: Processing changes: refs: 1, done
To ssh://user@gerrit-host:29418/Project
! [remote rejected] HEAD -> refs/publish/master (no new changes)
error: failed to push some refs to 'ssh://user@gerrit-host:29418/Project'
How can I tell Gerrit that my changeset needs to be reviewed?
you can remove that commit from remote branch or you can do this
git commit --amend
this will create a new patch
git push gerrit HEAD:refs/for/your_branch
I think the problem is that the commit already in remote branch. That is why no new changes on push. First try to remove the commit from remote branch, and then push the commit to review branch.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With