Gerrit简单使用

来源:互联网 发布:华为悦盒怎么设置网络 编辑:程序博客网 时间:2024/05/21 22:41

Gerrit参考文档:
http://gerrit-documentation.googlecode.com/svn/Documentation/2.4.2/index.html
权限控制:
http://openwares.net/linux/gerrit_privilege_setup.html

gerrit不允许使用:

git push origin master

将本地的tracking branch直接push到远程仓库的master branch:

git push origin HEAD:refs/for/master

Gerrit workflow

通过gerrit也可以pull其他人提交的,还没有进入review的结果:

git fetch ssh://xxx@review.yyy.com:29418/projectName refs/changes/79/3179/3 && git checkout FETCH_HEADgit checkout -b <a_new_branch_point_to_unreviewd_commit>

详情也可以参考:
https://www.mediawiki.org/wiki/Gerrit/Tutorial#How_to_submit_a_patch

0 0