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