赞
踩
> git pull --tags origin main
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
登录了一下github网站,发现可以访问:

但是,ping了一下github,发现请求超时。

git、命令行都无法正确解析域名,但浏览器可以,有些奇怪。
但可以判断,确实是网络域名解析出现了问题,下面将采用手动修改hosts文件的方式解决。


140.82.113.3 github.com
146.75.77.194 github.global.ssl.fastly.net
C:\Windows\System32\drivers\etc\hosts文件的末尾,该文件不可编辑,可以复制到桌面,然后再复制回去实现替换。

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。