Github 使用问题汇总 FAQ

1、git push /pull / clone 超时

显然这是网络问题。

配置/取消http代理(PS 端口根据实际情况填写)

# 配置socks5代理
git config --global http.proxy 'socks5://127.0.0.1:1080'
# 配置http代理
git config --global http.proxy 'http://127.0.0.1:1080'

# 指定 github.com 的代理(建议)
git config --global http.https://github.com.proxy http://127.0.0.1:1080

取消HTTPS代理

git config --global --unset http.proxy