git使用代理clone

git使用代理clone

我使用的是ss代理,我在网上也看到了很多的关于设置代理的方案,但是都得不到解决。

设置全局Config代理。

1
2
  git config --global http.proxy http://127.0.0.1:1080
  git config --global https.proxy http://127.0.0.1:1080

去除代理设置

1
2
  git config --global --unset http.proxy
  git config --global --unset https.proxy

在我使用过程中一直都没得到解决。

我在clone的时候直接设置代理克隆,这样快的时候能达到3M/S,简直爽歪歪!

1
  git clone -c http.proxy="127.0.0.1:1081" https://github.com/syl20bnr/spacemacs

参考链接