您的位置:首页 > 其它

Gerrit简单使用

2015-08-11 10:42 357 查看
Gerrit参考文档:

http://gerrit-documentation.googlecode.com/svn/Documentation/2.4.2/index.html

权限控制:

http://openwares.net/linux/gerrit_privilege_setup.html

gerrit不允许使用:

[code]git push origin master


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

[code]git push origin HEAD:refs/for/master




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

[code]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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: