当前位置:   article > 正文

亲测有效 Failed to connect to github.com port 443 after 21070 ms: Couldn‘t connect to server_failed to connect to 192.168.1.131 port 3000 after

failed to connect to 192.168.1.131 port 3000 after 21063 ms: couldn't connec

今天在Idea里向github提交代码,遇到了这两个错误:

 1.Failed to connect to github.com port 443 after 21070 ms: Couldn't connect to server

 2.Recv failure: Connection was reset

这是由于本机系统代理端口和git端口不一致导致的。

解决办法:

查看代理:

cmd命令行修改git配置:

(其中的7890改为你电脑的端口号)

git设置代理

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

然后再push一下就可以了

 题外话:

还有一种方式是配置ssh

参考:https://blog.csdn.net/CoderSharry/article/details/131249905

 取消代理命令

  1. git config --global --unset http.proxy
  2. git config --global --unset https.proxy

参考:

[报错解决] Failed to connect to github.com port 443 after ***** ms: Couldn‘t connect to server_一件迷途小书童的博客-CSDN博客

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

闽ICP备14008679号