git和命令行 配置proxy请求

时间:2020-12-07 03:14:39

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

cmd中的操作

set http_proxy=http://127.0.0.1:8088

set https_proxy=http://127.0.0.1:8088