当前位置:   article > 正文

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

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

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

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

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

  1. 13.114.40.48 github.com
  2. 192.30.255.113 github.com
  3. 140.82.121.3 github.com

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

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/430511
推荐阅读
相关标签
  

闽ICP备14008679号