cmd中的操作

set http_proxy=http://127.0.0.1:7890
set https_proxy=http://127.0.0.1:7890

GIT中的操作

设置全局代理

git config --global http.proxy socks5://127.0.0.1:8088
git config --global http.proxy http://127.0.0.1:8088

设置当前代理

git config http.proxy socks5://127.0.0.1:8088
git config http.proxy http://127.0.0.1:8088

取消当前代理

git config --unset http.proxy

取消全局代理

git config --global --unset http.proxy