git及ssh配置

git config --global user.name  gerrit用户名
git config --global user.email  邮箱地址
git config --global core.editor vim
git config --global diff.tool vimdiff

ssh-keygen -t rsa -b 4096 -C  "注释字符"
cat .ssh/id_rsa.pub
然后把生成的Key添加到gerrit设置的SSH Public Keys里面

  

posted @ 2023-04-15 10:41  轻轻的吻  阅读(19)  评论(0编辑  收藏  举报