git-review -> promote draft to code-review

爷,独闯天下 提交于 2019-12-23 12:35:13

问题


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:

  1. Web UI: Open the draft change and use the "Publish"-button.
  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!