使用永久代理
git config --global http.proxy socks5://127.0.0.1:10808
git config --global https.proxy socks5://127.0.0.1:10808
取消永久代理修改:
git config --global --unset http.proxy
git config --global --unset https.proxy
临时使用一次
export ALL_PROXY=socks5://127.0.0.1:10808
取消代理修改
unset ALL_PROXY