git

git 使用SOCK5代理

2017-03-07  本文已影响862人  谢昆明

全局代理,写入配置
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

临时代理
ALL_PROXY=socks5://127.0.0.1:8888 git clone https://github.com/some/one.git

打赏

如果这篇文章解决了您的问题,让我买根烟抽抽。

支付宝.jpg 微信.jpg
上一篇 下一篇

猜你喜欢

热点阅读