本文基于mac系统
换电脑之后无法链接git
ssh-keygen -t rsa -C "你的邮箱"
会生成一个rsa文件(私钥)和一个rsa.pub(公钥)
sublime rsa.pub #sublime 命令请移步https://blog.csdn.net/qq_36688622/article/details/104037305
将公钥添加到git的ssh中。
可能会出现添加玩public ssh key之后还是无法连接的情况
add-ssh "之前生成rsa(私钥)的路径"
重新git pull就可以了。