转载 https://blog.csdn.net/yhl_jxy/article/details/82846277
git config --global user.name "xxx"
git config --global user.email "xxx@xxx.com"
1、查看是否已经有了ssh密钥:cd ~/.ssh
如果没有密钥则不会有此文件夹,有则备份删除。
2、生存密钥
ssh-keygen -t rsa -C "xxx@xxx.com"
命令执行完后,在~/.ssh目录下会看到id_rsa、id_rsa.pub文件。
ssh连接是针对github的git@github.com:dslu7733/verilog.git这种地址的
原文:https://www.cnblogs.com/friedCoder/p/12726635.html