提示:Warning: Permanently added 'gitee.com,120.55.226.24' (ECDSA) to the list of known hosts.是公钥出问题了,要先设置用户和邮箱再重新生成ssh公钥即可。

1、首先我得重新在git设置一下身份的名字和邮箱   进入到需要提交的文件夹底下(因为直接打开git Bash,在没有路径的情况下,根本没!法!改!刚使用git时遇到的坑。。。)

git config --global user.name "yourname"
git config --global user.email "your@email.com"

注:yourname是你要设置的名字,your@email是你要设置的邮箱。

2、删除.ssh文件夹(直接搜索该文件夹)下的known_hosts(手动删除即可,不需要git)

3、git输入命令

$ 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):

请直接按下回车,然后系统会自动在.ssh文件夹下生成两个文件,id_rsa和id_rsa.pub,用记事本打开id_rsa.pub,将全部的内容复制

4、打开https://github.com/,登陆你的账户,进入设置

进入ssh设置

在key中将刚刚复制的粘贴进去

点击add ssh key,ok!

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遇到的问题之“Please make sure you have the correct access rights and the repository exists.”...

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

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

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

  4. 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.错误,出 ...

  5. 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 ...

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

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

  7. Please make sure you have the correct access rights and the repository exists.报错问题

    请找到你的C盘目录下面的公私钥目录:如下 打开known_hosts文件用notepad++打开,会看到有几行,删除不是你项目地址的IP的那一行即可,然后重新git下载即可

  8. 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 ...

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

    1.首先打开Git Bash设置名字和邮箱: git config --global user.name "你的名字" git config --global user.email ...

最新文章

  1. [征询意见][投票]先集中力量做好一个开源项目
  2. XMPP协议简单介绍
  3. 实验四 恶意代码技术
  4. 4月27日微软云训练营活动-现场图集
  5. Web页面获取用户控件页面中服务器控件的值
  6. 汉三水属国(北地属国、安定属国)
  7. day 02 python 基础
  8. python注册登录+mysql_Flask+MySql实现用户登录注册
  9. Redis实现微博后台业务逻辑系列(八)
  10. Scala:函数式编程之下划线underscore
  11. 一些机器学习(Machine Learning)的网站总结
  12. 十次方:区块链需要服务器吗?
  13. 计算机专业英语教程(第二版)
  14. 海思Hi3519部分环境和编译问题
  15. 终结符与非终结符详述
  16. python 导入自定义包
  17. 新浪云mysql_php连接mysql数据库(新浪云SAE)
  18. S@Kura的PHP进阶之路(二)
  19. activiti+app+mysql_SpringBoot Activiti6系列教程(一)-activiti-app部署
  20. UA记录wegame

热门文章

  1. 如何系统性地保障软件性能
  2. [算法]不使用*、/、+、-、%操作符求一个数的1/3
  3. 谁在告谁?移动专利混战图
  4. ffmpeg 0.6.3 代码, 经过我努力,能够在vs 2005 下单步调试代码
  5. 薪水增长多少,新机会才值得考虑?
  6. 如何更好阅读源代码 .
  7. FFMPEG中H.264的算法文档--整理自ffmpeg论坛等
  8. Docker 安装 Redis (Redis 配置)
  9. String.valueOf()方法与toString()方法的区别
  10. 关于openstack 专业博主地址.后续更新