开发过程中基于gerrit的git分支管理
作者:
疯狂的冰块 | 来源:发表于
2018-01-30 21:04 被阅读363次1、git checkout origin/dev -b dev
2、写代码
3、git add . && git commit -s -m "this is a massage"
4、git push origin HEAD:refs/for/dev
5、去gerrit 上自己先review一遍,觉得没有问题,然后添加其他reviewer
6、其他人打分
7、如果不过返回修改代码,修改完成git add . && git commit --amend
8、如果review没有问题,自己verify,然后点击submit。
9、如果想将刚刚的commit合并到staging,可以直接cherry-pick到staging。
10、如果第9步提示冲突
git checkout staging && git merge origin/dev && git push origin HEAD:refs/for/staging
然后重复第5步。
本文标题:开发过程中基于gerrit的git分支管理
本文链接:https://www.haomeiwen.com/subject/upchzxtx.html
网友评论