配置git
sudo vi ~/.gitconfig
設(shè)置git代理(VPN復(fù)制代理命令里面有相關(guān)http://127.0.0.1:7890)
[http]
proxy=http://127.0.0.1:7890
設(shè)置完之后下載速度明顯提升
設(shè)置ss
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'
設(shè)置代理
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy