git clone的时候遇到“Please make sure you have the correct access rights and the repository exists”...

1.搜索.ssh文件,删除该文件下的known_hosts文件

git clone的时候遇到“Please make sure you have the correct access rights and the repository exists”..._第1张图片

2.运行Git Bash,输入命令ssh-keygen -t rsa -C "username",然后一路回车

git clone的时候遇到“Please make sure you have the correct access rights and the repository exists”..._第2张图片

git clone的时候遇到“Please make sure you have the correct access rights and the repository exists”..._第3张图片

3.在.ssh文件夹里找到 id_rsa.pub文件,打开,全部复制,然后登录 https://github.com/,找到settings,配置

SSH keys

git clone的时候遇到“Please make sure you have the correct access rights and the repository exists”..._第4张图片

git clone的时候遇到“Please make sure you have the correct access rights and the repository exists”..._第5张图片

 将之前复制的id_rsa.pub文件里的所有内容黏贴在下面

git clone的时候遇到“Please make sure you have the correct access rights and the repository exists”..._第6张图片

 

 git clone的时候遇到“Please make sure you have the correct access rights and the repository exists”..._第7张图片

 4.最后运行Git Bash,输入命令ssh -T [email protected]

git clone的时候遇到“Please make sure you have the correct access rights and the repository exists”..._第8张图片

最后就可以正常使用了。

转载于:https://www.cnblogs.com/chenshy/p/9405680.html

你可能感兴趣的:(git clone的时候遇到“Please make sure you have the correct access rights and the repository exists”...)