gerrit以及repo的用户使用

1.服务器开通Gerrit账号密码
2.登录Gerrit服务器,设置邮箱以及用户名
3.设置sshKey到Gerrit服务器上
4.测试本地是否能连上Gerrit服务器

ssh -p port [email protected]

5.本地下载安装git
6.本地下载安装repo,服务器有repo可以用的话,就直接用git clone一个repo工程。
7.修改repo权限
chmod a+x ~/bin/git-repo/repo
8.配置git用户和邮箱
sudo git config –system user.email [email protected]
sudo git config –system user.name “username”

注意:–global –local –system对应的作用域不同,自行选择。
9.可以用repo开始下载代码了

猜你喜欢

转载自blog.csdn.net/panbinxian/article/details/80625345
今日推荐