当前位置:   article > 正文

git 报错:fatal: Could not read from remote repository_fatal: could not read from remote repository. plea

fatal: could not read from remote repository. please make sure you have the

git 报错:fatal: Could not read from remote repository

git报错

git pull 代码时报错:
在这里插入图片描述

fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
  • 1
  • 2
  • 3

在使用git提交代码时出现 fatal: Could not read from remote repository 这个错误,很简单

首先,将本地生成的 id_rsa以及id_rsa.pub这两个文件删除掉

rm -rf ~/.ssh/id_rsa
rm -rf ~/.ssh/id_rsa.pub
  • 1
  • 2

然后,使用命令 ssh-keygen -t rsa 重新生成密钥

在这里插入图片描述执行命令:cat id_rsa.pub
在这里插入图片描述
填写到阿里云上:https://code.aliyun.com/profile/keys/new
在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/正经夜光杯/article/detail/988032
推荐阅读
相关标签
  

闽ICP备14008679号