Gerrit简单使用

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简单使用_第1张图片

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

git fetch ssh://xxx@review.yyy.com:29418/projectName refs/changes/79/3179/3 && git checkout FETCH_HEAD

git checkout -b <a_new_branch_point_to_unreviewd_commit>

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

你可能感兴趣的:(git)