Failed to connect to github.com port 443 after 21117 ms: Couldn‘t connect to server

问题:在git上拉取github的代码报错,一共俩个错误,记录一下怎么解决的

错误1:在21117毫秒后连接到github.com端口443失败:无法连接到服务器

错误2:连接失败链接被重置了

  Recv failure: Connection was reset

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

在git的窗口使用如下命令,之后再次拉取可能会爆第二个错误

 git config --global --unset http.proxy

2.解决第二个错误:  Recv failure: Connection was reset

git config --global -l

git config --global --unset.http.proxy

git config --global --unset.https.proxy

3.成功

注意:所有命令均在git bash的窗口,别写错地方啦

文章到此结束,希望对你有所帮助~ 

猜你喜欢

转载自blog.csdn.net/qq_44278289/article/details/131984255
今日推荐