github timeout when using the VPN

when you set the proxy in your windows system, you may occur problem like this

Failed to connect to github.com port 443 after 21125 ms: Timed out

here is a solution that you can refer to

1. Find your proxy seting in powershell

Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\'

Looking for the ProxyServer and ProxyEnable values. If ProxyEnable is set to 1, a proxy is enabled.

2. Config your git

git config --global http.proxy http://your.proxy.server:port
git config --global https.proxy https://your.proxy.server:port

then your problem may be sloved

你可能感兴趣的:(github)