git push origin -- connection reset/ connect Timed out
Win10
解决过程描述:
可以正常登录GitHub,执行git clone,但是执行git push origin xxbranch
提示:
Connection was reset in connection to github.com:443
使用
git config --global http.sslVerify false
后再次push,报错提示变成:
Failed to connect to github.com port 443: Timed out
使用
git config --global http.proxy 127.0.0.1:1080
再次push,成功。
成功方案复述:
环境为:
代理设置界面中「使用设置脚本」是打开的,通过脚本地址下载「pac」文件,在 「pac」中找到 「proxy」的值,「
分析:
git config --global http.proxy 127.0.0.1:1080 为全局的 git 项目都设置代理