本文介绍了git-review->将草稿升级为代码审查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了Gerrit草案:
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?
如果我愿意:
git-review
我得到以下输出:
$ git review
remote:
remote: Processing changes: refs: 1, done
To ssh://[email protected]:29418/fooProject
! [remote rejected] HEAD -> refs/publish/master/p-jonbri-gitReviewBranch (no new changes)
error: failed to push some refs to 'ssh://[email protected]:29418/fooProject'
推荐答案
发布变更草案有两种可能性:
There are two possibilities to publish a draft change:
- Web UI:打开更改草稿并使用发布"按钮.
- 命令行:将Gerrit REST API与curl这样的客户端一起使用: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#publish-draft-change
这篇关于git-review->将草稿升级为代码审查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!