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

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这两个文件删除掉

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

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

发布了361 篇原创文章 · 获赞 41 · 访问量 16万+

猜你喜欢

转载自blog.csdn.net/guo_qiangqiang/article/details/103665446
今日推荐