git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
出现这个报错是因为电脑没添加github的ssh
打开Git Bash,按下面复制粘贴
1,生成ssh key
ssh-keygen -t rsa -C "xxx@xxx.com"
回车三次
2,获取ssh key公钥
cd ~/.ssh
cat id_rsa.pub
3,从ssh-rsa开始复制到结尾,粘贴到下方图片处
4,验证是否成功
ssh -T git@github.com
出现successfully就成功啦,然后再去拉去github上的仓库