2. 在( https://www.openstack.org/profile )上注册账号(应该与1.中账号邮箱一致),并成为Foundation Member(否则后面提交代码有问题)
3. 进入( https://review.openstack.org),登陆。
4. 进入( https://review.openstack.org/#/settings/ )填写以下信息
Profile中的Username
在Agreements中签署协议(个人是CLA)
在HTTP Password中Generate Password
在SSH Public Keys中添加一个key
生成秘钥:ssh-keygen
cd /root/.ssh/
5.配置你的git:
mkdir openstack_src cd openstack_src git config --global user.name "Firstname Lastname" git config --global user.email "[email protected]"
6.
yum install git-review
7.
git config --global gitreview.scheme https //此步是解决ssh不能够提交的问题,改为https连接方式提交 git config --global gitreview.port 29418 //端口号以实际情况为准 git remote rm gerrit //如前面有提交失败的话,先删除远程仓库
8.
cd openstack_src git clone https://git.openstack.org/openstack/horizon.git cd horizon/.git git remote add gerrit https://git.openstack.org/openstack/horizon.git cd hooks cp commit-msg.sample commit-msg cd ../../ git commit -a --amend 随便修改一行内容 git review -s
参考:
http://docs.openstack.org/contributor-guide/first-timers-quickstart.html#troubleshooting-a-setup
http://wiki.corp.awcloud.com/pages/viewpage.action?pageId=17727551
http://wiki.corp.awcloud.com/pages/viewpage.action?pageId=26902647
http://cloud.51cto.com/art/201507/482284.htm