问题
I have created a Gerrit draft:
git review -D
Once I am done working on the draft, how do I create the code-review so it can eventually be merged to master?
If I just do:
git-review
I get this output:
$ git review
remote:
remote: Processing changes: refs: 1, done
To ssh://jonbri@gerrit-foo.com:29418/fooProject
! [remote rejected] HEAD -> refs/publish/master/p-jonbri-gitReviewBranch (no new changes)
error: failed to push some refs to 'ssh://jonbri@gerrit-foo.com:29418/fooProject'
回答1:
There are two possibilities to publish a draft change:
- Web UI: Open the draft change and use the "Publish"-button.
- Command line: Use the Gerrit REST API with a client like curl: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#publish-draft-change
来源:https://stackoverflow.com/questions/29263238/git-review-promote-draft-to-code-review