打开 Git Bash: ssh-keygen -t rsa -b 4096 -C "你的github邮箱" 路径和passphrase都回车默认 复制key: 键入: clip < ~/.ssh/id_rsa.pub
ssh-keygen -t rsa -b 4096 -C "你的github邮箱"
clip < ~/.ssh/id_rsa.pub
在用户设置边栏中,点击SSH和GPG密钥 在密钥部分粘贴刚才复制的key
参考 使用git提交到github,每次都要输入用户名和密码的解决方法