1.首先打开Git Bash设置名字和邮箱:

git config --global user.name "你的名字"

git config --global user.email“你的邮箱"

2.删除.SSH文件下的known_hosts(.SSH在C:\Users\Windows用户名目录下)

3.生成ssh公钥认证所需的公钥和私钥文件

ssh-keygen -t rsa -C "你的名字/你的邮箱"

然后会出现以下内容

Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Administrator/.ssh/id_rsa):
/c/Users/Administrator/.ssh/id_rsa already exists.
Overwrite (y/n)? y(输入y)
Enter passphrase (empty for no passphrase):(回车)

Enter same passphrase again:(回车)

然后系统会自动在.ssh文件夹下生成两个文件,id_rsa和id_rsa.pub,用记事本打开id_rsa.pub,将里面的内容复制到下面这里

4.在Git中输入ssh -T git@github.com验证与github连接是否成功时

The authenticity of host 'github.com (13.250.177.223)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? yes(输入yes)
Warning: Permanently added 'github.com,13.250.177.223' (RSA) to the list of known hosts.

Hi XXX! You've successfully authenticated, but GitHub does not provide shell access.

最后再试着拉取一下项目,就成了。。

Git提交时提示“Please make sure you have the correct access rights and the repository exists.”的解决方法相关推荐

  1. Git clone时出现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.问题已解决. 参考文 ...

  2. Git clone时出现Please make sure you have the correct access rights and the repository exists.问题已解决。...

    1   删除.ssh文件夹(直接搜索该文件夹)下的known_hosts(手动删除即可,不需要git) 2   在下载好的Git中的bin目录下打开bash.exe输入命令ssh-keygen -t ...

  3. git clone 时候出现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.错误,出 ...

  4. 用Git在阿里云下克隆时出现“Please make sure you have the correct access rights and the repository exists”错误

    一.报错的界面显示 二.可能的问题 1.你的ssh key有问题,需要重新生成配置 2.你没有在阿里云中配置你新生成的秘钥 三.解决方法 1.针对ssh key错误的解决方法 (1)搜索.ssh文件, ...

  5. git 报错:Please make sure you have the correct access rights and the repository exists

    提示:Warning: Permanently added 'gitee.com,120.55.226.24' (ECDSA) to the list of known hosts.是公钥出问题了,要 ...

  6. git遇到的问题之“Please make sure you have the correct access rights and the repository exists.”...

    对于git的提交一直很小心翼翼,感觉一不小心就会踩到莫名的坑. 这不, 某天commit 就遇到了On branch master nothing to commit (working directo ...

  7. (转)git遇到的问题之“Please make sure you have the correct access rights and the repository exists.”...

    对于git的提交一直很小心翼翼,感觉一不小心就会踩到莫名的坑. 这不, 某天commit 就遇到了On branch master nothing to commit (working directo ...

  8. git问题:Please make sure you have the correct access rights and the repository exists.

    当遇到如标题所示问题,打开终端 MBP:baiyunshen_rn lianyu02$ git pull git@gitlab.intebox.com: Permission denied (publ ...

  9. git由于网络原因导致 please make sure you have the correct access rights and the repository exists

    之前遇到权限总是去重新生成sshkey,然后重新配置,懵逼的是:用着用着突然就有问题了,然后坐等,等会就好了,有毒啊,我啥都没动 经过一个多月的,实际操作,发现仅仅在公司的网络环境会出现这种情况,在家 ...

最新文章

  1. android 多个属性值,android布局属性值fill_parent和match_parent
  2. 安卓开发37:自定义的HorizontalScrollView类,使其pageScroll的时候焦点不选中
  3. JDK 动态代理和MyBatis 用到的JDK 动态代理有什么区别?
  4. android按钮点击toast,关于button点击事件中setOnClick等元素的解读以及方法?以及toast的位置以及作用?...
  5. 论文浅尝 | 基于深度序列模型的知识图谱补全
  6. 笔记本电脑怎样连接打印机_“小小”打印机 | 惠普M17w迷你激打
  7. html文件怎么转换为swf文件,在html里怎么添加flash视频格式(flv、swf)文件
  8. mysql 存正负数_mysql 存储负数
  9. PMP题目与解题思路(第二天)
  10. 上传图片预览图片方向错误
  11. 关于头歌C/C++编程实训数组实训朋友圈点赞的一个题解
  12. 执行Transact-SQL语句或批处理时发生异常
  13. 技术分享 | 无人机仿真教程-Prometheus平台 -转自阿木实验室
  14. 我打算学python,可是我的拖延症已经晚期了
  15. onclick事件传参时传中文传不过去
  16. BASE理论(基本可用策略+ 最终一致性实现)
  17. opt-in与opt-out及中文翻译
  18. 亚马逊站電氣水族器材UL1018测试报告
  19. element-ui table自定义斑马条纹颜色
  20. jQuery Masonry构建pinterest网站布局注意要点(转)

热门文章

  1. 网络相关的常用协议总结
  2. 吴恩达《机器学习》第三章:矩阵和向量
  3. 西瓜书+实战+吴恩达机器学习(十八)降维(主成分分析 PCA)
  4. 《Java 8 in Action》Chapter 12:新的日期和时间API
  5. win10右击菜单在左边
  6. php7 viewmodel,【初念科技】| php框架实例: Laravel之Model Observer模型
  7. thinkphp5连接数据库mysql_ThinkPHP学习(三)配置PHP5支持MySQL,连接MySQL数据库
  8. 工作——常用语法记录
  9. Log4j CVE-2021-44228 漏洞及Spring Boot解决方案
  10. 自己动手写Docker系列 -- 5.1实现容器的后台运行