Terminal 终端配置代理

终端配置代理访问外部网络

设置

# 设置
git config --global http.proxy http://127.0.0.1:1087
git config --global https.proxy https://127.0.0.1:1087
git config --global http.proxy 'socks5://127.0.0.1:1086' 
git config --global https.proxy 'socks5://127.0.0.1:1086'

取消

# 取消
git config --global --unset http.proxy
git config --global --unset https.proxy