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.
在使用git提交代码时出现 fatal: Could not read from remote repository 这个错误,很简单
首先,将本地生成的 id_rsa以及id_rsa.pub这两个文件删除掉
rm -rf ~/.ssh/id_rsa
rm -rf ~/.ssh/id_rsa.pub
然后,使用命令 ssh-keygen -t rsa 重新生成密钥
执行命令:cat id_rsa.pub

填写到阿里云上:https://code.aliyun.com/profile/keys/new


本文介绍了解决Git在拉取代码时遇到的“fatal: Could not read from remote repository”错误的方法。通过删除本地SSH密钥并重新生成,确保与远程仓库的正确连接。

6723

被折叠的 条评论
为什么被折叠?



