码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2018-08-02 11:23:55      阅读:227      评论:0      收藏:0      [点我收藏+]

标签:osi   hosts   遇到   tps   alt   height   name   git   make   

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

技术分享图片

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

技术分享图片

技术分享图片

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

SSH keys

技术分享图片

技术分享图片

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

技术分享图片

 

 技术分享图片

 4.最后运行Git Bash,输入命令ssh -T git@github.com

技术分享图片

最后就可以正常使用了。

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

标签:osi   hosts   遇到   tps   alt   height   name   git   make   

原文地址:https://www.cnblogs.com/chenshy/p/9405680.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!