openstack gerrit的日常
2015-10-20 19:22
183 查看
# Openstack社区Gerrit 代码提交教程
[关于代码贡献,可以查看这篇文章](http://blog.csdn.net/agileclipse/article/details/17405035),今天我们记录的是
爬墙与错误处理
* #gerrit爬墙
---
因为GFW问题,gerrit port29418被封,我们可以使用username/password方式,进行设置访问,设置如下:
`git remote set-url gerrit https://username:http-password@review.openstack.org/openstack/keystone.git`
这个命令我是在项目里面执行的,如果有多个项目貌似只要对开始的有用,其他的都是报no gerrit的错误
其中,进入Setting->HTTP password,将上面代码中的username,http-password分别替换,即可
[其他提交代码方式详见链接](http://m.blog.csdn.net/blog/agileclipse/38980419)
* #gerrit设置
---
配置gitreview
`git config --global gitreview.username USERNAME`
`git config --global gitreview.email=EMAIL`
或者设置下面的
`git config --global user.name USERNAME`
`git config --global user.email EMAIL`
其中USERNAME、EMAIL填写你自己的账号信息即可,如果出现以下错误
`commiter email address xxx does not match your user account`
那就是你的账号配置有问题,可以通过以下命令查看配置
`git config -l`
[那么怎么解决这样一个不匹配的问题呢](http://tanglei528.blog.163.com/blog/static/43353399201512625749189/),继续往下面看
因为你报错的时候会给一个commit ID,我们通过下面的命名重置更改,返回到没有出错的时间点
`git reset --hard COMMITID`
[当然你也可以通过`git log`查看你需要返回的时间点](http://www.douban.com/note/189603387/)
查看原文:http://www.zoues.com/index.php/2015/10/20/openstack-gerrit-daily/
[关于代码贡献,可以查看这篇文章](http://blog.csdn.net/agileclipse/article/details/17405035),今天我们记录的是
爬墙与错误处理
* #gerrit爬墙
---
因为GFW问题,gerrit port29418被封,我们可以使用username/password方式,进行设置访问,设置如下:
`git remote set-url gerrit https://username:http-password@review.openstack.org/openstack/keystone.git`
这个命令我是在项目里面执行的,如果有多个项目貌似只要对开始的有用,其他的都是报no gerrit的错误
其中,进入Setting->HTTP password,将上面代码中的username,http-password分别替换,即可
[其他提交代码方式详见链接](http://m.blog.csdn.net/blog/agileclipse/38980419)
* #gerrit设置
---
配置gitreview
`git config --global gitreview.username USERNAME`
`git config --global gitreview.email=EMAIL`
或者设置下面的
`git config --global user.name USERNAME`
`git config --global user.email EMAIL`
其中USERNAME、EMAIL填写你自己的账号信息即可,如果出现以下错误
`commiter email address xxx does not match your user account`
那就是你的账号配置有问题,可以通过以下命令查看配置
`git config -l`
[那么怎么解决这样一个不匹配的问题呢](http://tanglei528.blog.163.com/blog/static/43353399201512625749189/),继续往下面看
因为你报错的时候会给一个commit ID,我们通过下面的命名重置更改,返回到没有出错的时间点
`git reset --hard COMMITID`
[当然你也可以通过`git log`查看你需要返回的时间点](http://www.douban.com/note/189603387/)
查看原文:http://www.zoues.com/index.php/2015/10/20/openstack-gerrit-daily/
相关文章推荐
- Android5.0 源码研究---进程间通信 Linux内核源码部分解析
- linux问题-easy_install安装bpython时报错
- 18个最新的极简主义风格网站
- openstack用bosh部署cloudfoundry(二)---准备bosh cli
- opencv2-用指针来访问图像像素
- linux下nginx模块开发入门
- openstack用bosh部署cloudfoundry(一)--准备openstack环境
- Docker在windows下无法开启伪终端解决方法
- iOS 应用架构谈 动态部署方案
- 第 三 十 六 天:二 阶 段 复 习(七)
- Docker学习笔记 — Coreos/Flannel
- Linux内核文件系统-页高速缓存
- linux 查看系统信息命令(比较全)
- ELKStack插件collectd配置说明
- linux: 几个常用makefile模板
- Linux运维工程师工作手册
- linux畅聊系统乱码问题
- -bash: /bin/tar: Argument list too long
- 老男孩解决vmware克隆Centos6.4虚拟机网卡无法启动问题
- Opencv imread用法