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