GIT设置和取消http代理, 取消https代理

为git设置http代理, https代理

#http代理
git config --global http.proxy 'socks5://127.0.0.1:1080'
#https代理
git config --global https.proxy 'socks5://127.0.0.1:1080'

可以使用 git config -l查看代理

取消http代理, 取消https代理

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

你可能感兴趣的:(GIT设置和取消http代理, 取消https代理)