1、win+r 打开cmd,输入
ssh-keygen -t rsa -C 你的邮箱@xxx.com
生成ssh公钥和私钥对
2、回车三次
3、输入命令
type %userprofile%.ssh\id_rsa.pub | clip
这时复制了公钥
4、在git页面中
editprofile->sshkes->add sshkey
输入并保存即可
[详解]You won‘t be able to pull or push repositories via SSH until you add an SSH key to your profile
最新推荐文章于 2024-07-08 00:46:25 发布