我创建了一个 Gerrit 草稿:
git review -D
完成草稿后,如何创建代码审查以便最终将其 merge 到母版中?
如果我这样做:
git-review
我得到这个输出:
$ 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'
最佳答案
发布更改草案有两种可能性:
- 网络用户界面:打开更改草稿并使用“发布”按钮。
- 命令行:将 Gerrit REST API 与 curl 这样的客户端一起使用:https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#publish-draft-change
关于git-review -> 将草稿提升为代码审查,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29263238/