一. 让 git 通过socks5代理服务器发出http请求
git config --global http.proxy 'socks5://127.0.0.1:1080'
二. 让 curl 也走代理
echo 'proxy=socks5://127.0.0.1:1080' > ~/.curlrc