git配置http socks5代理

xingyun86 22天前 83

git配置http socks5代理

# 以下使用socks5代理
git config --global http.proxy socks5://127.0.0.1:1086
git config --global https.proxy socks5://127.0.0.1:1086
 
# 以下使用http代理
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.sslVerify false

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


×
打赏作者
最新回复 (0)
只看楼主
全部楼主
返回