本文介绍通过socks5全剧模式下加速git clone,亲测有效

首先需要知道自己的本地socks5监听端口号,如我的是1086
ss加速git clone

终端输入(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

相关文章:

  • 2021-06-29
  • 2021-07-20
  • 2021-10-19
  • 2021-06-25
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-05
  • 2021-07-05
  • 2022-01-16
  • 2021-05-21
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案