1、生成ssh key

在ubuntu终端敲击命令,然后会在.ssh目录下生成一组**对:
ssh-****** -t rsa

2、配置config

如果没有config文件,自己在.ssh/下建一个,配置的内容,找你们公司的it,我们一般是这样写的

[email protected]:~/.ssh$ cat config
Host gerrit.xxxxx.com
user 你的名字
port 29418

3、配置用户邮箱

git config --global user.name “你的名字”
git config --global user.email “你的邮箱”

4、将公钥登记在gerrit网上上

cat ~/.ssh/id_rsa.pub, 将文件内容复制, 然后粘贴到网页上
git/gerrit配置方法

相关文章:

  • 2021-11-27
  • 2022-12-23
  • 2022-01-11
  • 2021-11-28
  • 2022-12-23
  • 2021-09-16
  • 2021-08-31
猜你喜欢
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-19
  • 2022-03-07
相关资源
相似解决方案