(github错误)fatal: Could not read from remote repository.

今天使用github的过程中,遇到了一个错误fatal: Could not read from remote repository.经搜索,具体提示为:


(github错误)fatal: Could not read from remote repository._第1张图片

解决方法为:

修改ssh密钥,修改完成后,将指定路径(我本地路径为(/c/Users/Lunar/.ssh/id_rsa)下的id_rsa.pub文件中的内容复制到github setting ssh-key中)然后重新添加远程地址,重新push即可成功,具体操作步骤如下:(ps:此处使用的访问方式是ssh协议访问,最近用http协议一直不成功,看了知乎,可能是vpn对http请求的响应要求比较高?)


(github错误)fatal: Could not read from remote repository._第2张图片
生成新的ssh key


(github错误)fatal: Could not read from remote repository._第3张图片
将生成的key复制到github中


添加新的远程路径


(github错误)fatal: Could not read from remote repository._第4张图片
查看远程地址信息
(github错误)fatal: Could not read from remote repository._第5张图片
重新push

你可能感兴趣的:((github错误)fatal: Could not read from remote repository.)