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

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.全选复制里面的内容

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

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

 

posted @ 2019-08-05 15:47  吴百万  阅读(347)  评论(0编辑  收藏  举报