git 操作

1.全局设置名称跟邮箱
git config --global user.name "姓名"

git config --global user.email "邮箱@qq.com"

2.生成公钥命令
ssh-keygen -t rsa -C "邮箱@qq.com"

3.查看公钥
cat ~/.ssh/id_rsa.pub

原文地址:https://www.cnblogs.com/chenmiaosong/p/8467837.html