当前位置:   article > 正文

Git配置代理解决 “Failed to connect to github.com port 443“及 “Recv failure: Connection was reset“_代理recv failure: connection was reset

代理recv failure: connection was reset

使用 git clone 下载 Github 等网站的仓库时,可能会遇到类似 “Recv failure: Connection was reset” 或 “Failed to connect to http://github.com port 443 after 21114 ms: Couldn’t connect to server” 的报错。即使打开了全局代理,也会报错。此时,需要为 Git 单独配置代理,可以使用以下命令:

git config --global http.proxy http://127.0.0.1:7890
git config --global https.proxy http://127.0.0.1:7890

配置完成后,可以使用以下命令查看并修改 Git 的配置:

git config --global --edit

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

闽ICP备14008679号