GitHub ssh push方法

新建一个key

打开 Git Bash:
ssh-keygen -t rsa -b 4096 -C "你的github邮箱"
路径和passphrase都回车默认
复制key:
键入:
clip < ~/.ssh/id_rsa.pub

github中新建ssh key

在用户设置边栏中,点击SSH和GPG密钥
在密钥部分粘贴刚才复制的key

修改git https push 转ssh push

参考 使用git提交到github,每次都要输入用户名和密码的解决方法

原文地址:https://www.cnblogs.com/hicolin/p/13747996.html