you might encounter error when git clone and git push. The following are some solutions to fix it.
-
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: