当前位置:   article > 正文

报错解决:Failed to connect to github.com port 443: Connection refuesd_git failed to connect to port 443: connection refu

git failed to connect to port 443: connection refused错误

今天在用git下载时遇到错误:

Cloning into 'xxxxx'...
fatal: unable to access 'https://github.com/xxxxxxxx.git/': Failed to connect to github.com port 443: Connection refused

查询后尝试以下方法解决:

1.查看自己的本机系统代理(设置---网络和Internet---代理---地址:端口):

2.修改git配置:(其中的xxxx改为你电脑的端口号)

  1. git config --global http.proxy http://127.0.0.1:xxxx
  2. git config --global https.proxy http://127.0.0.1:xxxx

3.再次执行原先的代码,但是我又遇到了错误:

也就是:

Cloning into 'xxxxxx'...
fatal: unable to access 'https://github.com/xxxxxxx.git/': Failed to connect to 127.0.0.1 port xxxx: Connection refused

我尝试了第2种方法这次解决了问题:

  1. git config --global -l
  2. git config --global http.proxy http://127.0.0.1:1080
  3. git config --global https.proxy http://127.0.0.1:1080
  4. git config --global --unset http.proxy
  5. git config --global --unset https.proxy
  6. git config --global -l

附上运行图片:

参考链接:

https://blog.csdn.net/weixin_46191137/article/details/133739981

https://www.cnblogs.com/zhaodehua/articles/15177099.html

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

闽ICP备14008679号