Are you behind a proxy or firewall that might be disrupting requests to github.com
?
I think you might have to configure git
to use the proxy as well.
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'