git "Could not read from remote repository.Please make sure you have the correct access rights."解决方案
来源:互联网 发布:java双向链表 编辑:程序博客网 时间:2024/05/17 00:55
git clone 项目时,出现Could not read from remote repository.Please make sure you have the correct access rights.
这就说明你没有添加github的SSH Key或者需要重新添加。
步骤如下:
1、重新在git设置一下身份的名字和邮箱
git config –global user.name “yourname”
git config –global user.email“your@email.com”
没有返回是最好的回馈,说明设置成功
global 前面是双-
2、C盘搜索.ssh文件,删除known_hosts
3、Git Bash中输入
ssh-keygen -t rsa -C “your@email.com”(刚才设置的邮箱)
出现:Generating public/private rsa key pair.
Enter file in which to save the key (/Users/your_user_directory/.ssh/id_rsa):
直接按下回车命令行结束
这样会在刚才的文件夹里新生成两个文件。id_rsa和id_rsa.pub
用记事本打开id_rsa.pub ,Ctrl+A全部复制。
4、打开Github主页,登录账户->设置->SSH和GPG Keys->New SSH Key
Title : mySSH
Key : 粘贴刚才复制的
点击Add New Key.
5、在git中输入命令:
ssh -T git@github.com
输入yes
继续刚才的git clone
结束。
- git "Could not read from remote repository.Please make sure you have the correct access rights."解决方案
- Git"Could not read from remote repository.Please make sure you have the correct access rights."解决方案
- git "Could not read from remote repository.Please make sure you have the correct access rights."解决方案
- Could not read from remote repository.Please make sure you have the correct access rights.and the re
- git pull 出错 fatal: Could not read from remote repository.Please make sure you have the correct acces
- git pull 出错 fatal: Could not read from remote repository.Please make sure you have the correct acces
- git pull 出错 fatal: Could not read from remote repository.Please make sure you have the correct acces
- 【Git & GitHub】解决办法:Could not read from remote repository.Please make sure you have the...
- git学习笔记(2) -- "fatal: Could not read from remote repository. Please make sure you have the corre"
- git遇到的问题之“Please make sure you have the correct access rights and the repository exists.”
- git pull出错fatal:Please make sure you have the correct access rights.and the repository exists.
- git clone时出现Please make sure you have the correct access rights and the repository exists.错误
- git遇到的问题之“Please make sure you have the correct access rights and the repository exists.”
- git遇到的问题之“Please make sure you have the correct access rights and the repository exists.”
- git由于网络原因导致 please make sure you have the correct access rights and the repository exists
- Please make sure you have the correct access rights
- Please make sure you have the correct access rights
- Please make sure you have the correct access rights and the repository exists
- git 创建本地仓库
- 基于Android端WebRTC点对点互连
- 图片压缩工具类
- java垃圾回收的标记、算法、回收器总结
- .offset().top 与 .offsetTop
- git "Could not read from remote repository.Please make sure you have the correct access rights."解决方案
- jHipster 3.4 创建最流行Java Web应用项目最简单的入门基本教程
- IP分片
- Python培训(1)
- MySQL删除数据
- ES6系列之---Map
- Spring boot和dubbo整合部署到tomcat——基于注解方式
- 解决DeferredResult 使用 @ResponseBody 注解返回中文乱码
- vue模板语法