if you could access to github.com in browser, but can’t access in terminal, then you need to set proxy in terminal:
export http_proxy="http://127.0.0.1:<your proxy port>"
export https_proxy="http://127.0.0.1:<your proxy port>"
if this doesn’t work, you may need to try following:
-
add following to your ~/.ssh/config
Host github.com Hostname ssh.github.com Port 443
- check your proxy port in your network settings.
-
set git proxy:
git config --global http.proxy http://127.0.0.1:<your proxy port> git config --global https.proxy https://127.0.0.1:<your proxy port>
- set host use SwitchHosts according to this:
if you can’t access raw.githubusercontent.com, try this: