当前位置:   article > 正文

Failed to connect to 127.0.0.1 port 1080 after 2063 ms: Couldn‘t connect to server、Failed to connect_failed to connect to 127.0.0.1 port 33210 after 20

failed to connect to 127.0.0.1 port 33210 after 2081 ms: couldn't connect to

报错详情

本地有个项目,需要上传到github,仓库建好以后,推送到远端的时候报错

Failed to connect to 127.0.0.1 port 1080 after 2063 ms: Couldn't connect to server、Failed to connect to github.com port 443 after 21083 ms: Couldn't connect to server
  • 1

问题分析

出现Couldn’t connect to server的原因多半是因为先前通过下述终端命令设置了github的访问代理,取消即可正常访问。

git config --global http.proxy http://127.0.0.1:1080
 
git config --global http.proxy https://127.0.0.1:1080
  • 1
  • 2
  • 3

解决方案

1、确保自己能够ping得通github.com。
2、依次在Git Bash中输入下面两行命令,然后在执行clone命令就好了!

git config --global --unset http.proxy

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

闽ICP备14008679号