设置全局的用户名字和邮箱 git config --global user.name "zhs" git config --global user.email "test@163.com" 生成ssh-key ssh-keygen -t rsa -C "zhs@ubuntu-ssd" -t 来指定密钥类型,这里使用的是rsa -C 来指定在密钥中的一个注释字段,方便用户标识这个密钥的用途或其他有用的信息