github推送出现超时问题

github出现推送问题如下

1
2
Failed to connect to github.com port 443 after 21058 ms: Timed out
OpenSSL SSL_read: Connection was reset, errno 10054

需要重新设置代理,比如我的VPN显示代理端口号为7890,那么我们就需要配置

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

然后重新执行推送即可

1
git push -u origin master