美文网首页
使用ss加速github clone

使用ss加速github clone

作者: Homer1ynn | 来源:发表于2017-03-07 16:21 被阅读1834次

使用之前,请自行搭建ss

此方法主要是设置http.proxy和https.proxy这2个参数
通过一下方式就可以设置http和https代理:

git config --global http.proxyhttp://127.0.0.1:1080
git config --global https.proxyhttps://127.0.0.1:1080

由于ss使用的socks5,所以需要像下边这样来配置:

git config --global --unset http.proxy
git config --global --unset https.proxy
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'

相关文章

网友评论

      本文标题:使用ss加速github clone

      本文链接:https://www.haomeiwen.com/subject/tnimgttx.html