gerrit配置其他机器
2024年1月29日小于 1 分钟约 144 字
- 生成密钥
ssh-keygen,一路回车键确认,确认~/.ssh/id_rsa.pub的存在。查看公钥: cat ~/.ssh/id_rsa.pub。
将公钥id_rsa.pub的内容加入到Gerrit服务器中
配置git账号
执行如下三条命令:(全局)
git config --global user.name "username"
git config --global user.email "username@hisense.com"
git config --global core.editor vim
局部
git config user.name "username"
git config user.email "username@hisense.com"
git config core.editor vim
注: “username”对应自己申请的gerrit账号。
