push 到 github 报错:OpenSSL SSL_connect: Connection was reset in connection to
问题描述
今天使用git命令push到github的时候出现如下报错:
fatal: unable to access 'https://github.com/tzhhone/To-shop.git/': OpenSSL SSL_connect: Connection was reset in connection to github.com:443
解决方案
因为最近我修改了VPN的代理端口,所以极有可能是因为VPN导致的问题。
所以这里设置一下http.proxy就可以了。
先取消之前设置的git代理
git config --global --unset http.proxy
git config --global --unset https.proxy
然后设置为现在使用的git代理
git config --global http.proxy 127.0.0.1:3333
git config --global https.proxy 127.0.0.1:3333
注意 : 后面是你代理监听的端口号,我这里是3333
最后重新提交一下,就可以发现提交成功了。