报错 Please make sure you have the correct access rights and the repository exists (git 添加ssh密钥 )

时间:2021-01-15 00:23:39

1.设置Git的user name和email

$ git config --global user.name "wubaiwan"

$ git config --global user.email "576953565@qq.com"

2.然后系统会自动在.ssh文件夹(一般在c盘)下生成两个文件,id_rsa和id_rsa.pub,用记事本打开id_rsa.pub

3.全选复制里面的内容报错 Please make sure you have the correct access rights and the repository exists (git 添加ssh密钥 )

4,打开git 设置 粘贴到里面

报错 Please make sure you have the correct access rights and the repository exists (git 添加ssh密钥 )

5,回到git bash 输入命令ssh -T git@github.com ,运行后在输入yes,回车,啦啦啦就ok了