bash git 配置

1、设置Git的 user name和email:

$ git config --global user.name "xxx"
$ git config --global user.email "[email protected]"

2、生成秘钥

 ssh-keygen -t rsa  -C “xxx@xxx.com” 

这样在~/.ssh  下会有对应的公钥与秘钥文件,生成过程密码可设置可不设置。

3、在gerrit  中添加Add SSH Public Key   ,只需将~/.ssh/id_rsa.pub  内容复制过去。





猜你喜欢

转载自blog.csdn.net/lei7143/article/details/80348173
今日推荐