git配置 用户名 邮箱 SSH
#配置用户名
git config --global user.name "name"
#配置邮箱
git config --global user.email "xxx@xxx.com"
#生成SSH密钥对
ssh-keygen -t rsa -C "xxx@xxx.com"
#查看你生成的公钥
cat ~/.ssh/id_rsa.pub
[root@localhost .ssh]# ssh -T git@192.168.xx.xx
Welcome to GitLab, @name!
...
原创
2021-03-01 00:09:34 ·
908 阅读 ·
0 评论