0
点赞
收藏
分享

微信扫一扫

git push 失败 unable to access ‘https://github.com/..../.git‘

RJ_Hwang 2022-03-21 阅读 81
githubgit

今晚在刷LeetCode时想把代码放到github上时,突然发现git push远程仓库失败

ssh: Could not resolve hostname github.com: Temporary failure in name resolution
fatal: Could not read from remote repository.

看到这个错误提示大概率就是因为github连接不上去,我收集了几个能用的gitbub公网地址,在改hosts之前可以先去浏览器看看这几个公网地址能不能用

13.114.40.48 github.com

192.30.255.113 github.com

140.82.121.3 github.com

二话不说直接改hosts文件,直接push成功

不得不说这种外网连接问题有时候是真的让人头大,网络上教程也是稀奇古怪的令我头皮发麻

举报

相关推荐

0 条评论