https://blog.youkuaiyun.com/zhaohaibo_/article/details/89048596
本文介绍通过socks5全剧模式下加速git clone,亲测有效
首先需要知道自己的本地socks5监听端口号,如我的是1086
终端输入(1086改成自己的端口号)
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
git config --global http.proxy 'socks5://127.0.0.1:7890'
git config --global https.proxy 'socks5://127.0.0.1:7890'