1.准备工做。git
点击Settings按钮进行设置,跳转到spa
https://review.openstack.org/#/settings/3d
2.选择用户名称。orm
这个选择以后不能修改。blog
3.设置http密码rem
这里产生的Password后续提交代码会用到。get
4.赞成OpenStack协议。it
选择ICLA。io
填写I AGREE,而后点击Submit Agreement。form
成功以后会显示以下:
5.安装git和git-review
apt-get install git
apt-get install git-review
6.Git下载Karbor代码
git clone https://git.openstack.org/openstack/karbor
7.配置本地Git
cd karbor
git config --global user.name edisonxiang000
git config --global user.email 80474298@qq.com
git remote add gerrit https://edisonxiang000:ESRWSOTt0YBF8ayzllORuDNxWOCdIEQVjbtLWLidVw@review.openstack.org/openstack/karbor.git
用户名: edisonxiang000
用户密码:ESRWSOTt0YBF8ayzllORuDNxWOCdIEQVjbtLWLidVw
用户邮箱:80474298@qq.com
这里的用户名、用户密码、用户邮箱须要使用本身的。
8.在本地建立并切换到一个新的代码分支
git checkout -b bug/xxxxxxx
xxxxxxx为在launchpad里面提交的Bug ID。
9.修改本地代码
10.添加当前branch的代码修改到本地暂存区域
git add .
12.添加提交消息文件
vi .git/message
.git/message文件内容以下:
Optimize time trigger: fix update trigger property
Optimize time trigger in several aspects. This patch is the third
phase, which fixes a bug that one operation may be triggered at the
same time in both old and new threads when updating the trigger property
two times successively.
Closes-Bug: #xxxxxxx
xxxxxxx为在launchpad里面提交的Bug ID。
13.拷贝commit-msg文件到.git/hooks/目录下。
commit-msg文件会发到现场QQ群
14.本地提交
git commit -a -F .git/message
15.提交到OpenStack的官方地址
git review
16.在git review时遇到Contact information问题
须要按照下图完善我的信息。