当前位置:   article > 正文

GitHub设置代理 提升速度_githab在哪设置ssr

githab在哪设置ssr

原因:从github上clone或者download一个项目,慢的要命!

设置代理

如果socks5(SSR)
第一,你需要知道你本地的socks5代理ip地址和端口。
例如。127.0.0.1端口1080
然后使用此命令设置代理

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

如果http / https 
使用此命令:

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

取消代理

  1. git config --global --unset http.proxy
  2. git config --global --unset https.proxy
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/438578
推荐阅读
相关标签
  

闽ICP备14008679号