#配置用户名
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!
git配置 用户名 邮箱 SSH
最新推荐文章于 2023-09-18 16:17:58 发布