背景
使用 git clone
github 上代码时,有时速度才 20 ~ 30 kb/s,着实是慢。鉴于目前自己有代理服务器可用,遂进行加速。
设置
设置代理
git config --global http.proxy 'http://127.0.0.1:10801'
git config --global https.proxy 'https://127.0.0.1:10801'
取消代理
git config --global http.proxy ''
git config --global https.proxy ''