美文网首页
为git设置代理

为git设置代理

作者: 原味丿丿咖啡Vitas | 来源:发表于2021-03-16 14:39 被阅读0次

国内同步github上的项目速度过慢

可以通过设置代理提高速度

  • 设置代理
git config --global http.proxy 'socks5://127.0.0.1:1080' 
git config --global https.proxy 'socks5://127.0.0.1:1080' 

git config --global http.proxy 'http://127.0.0.1:1080' 
git config --global https.proxy 'http://127.0.0.1:1080' 
  • 取消代理
git config --global --unset http.proxy 
git config --global --unset https.proxy 
  • 只对github设置代理
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080 

*取消代理

git config --global --unset http.https://github.com.proxy

相关文章

  • git设置及取消代理

    git设置及取消代理//首先,设置默认代理,也可以理解为清除代理 //设置代理

  • GIT设置和取消http代理, 取消https代理

    为git设置http代理, https代理 可以使用 git config -l查看代理 取消http代理, 取消...

  • 设置git使用电脑vpn

    为git设置http代理, https代理git config --global https.proxy 'soc...

  • Git 代理 和 npm error code 128

    设置 git 代理 端口自行更改, 这里以clash为例 清空 git 代理 npm 清空缓存 npm 删除代理 ...

  • OpenSSL SSL_read: Connection was

    根据代理端口设置 AndroidStudio 代理使用 clashX 端口为:7890 git config --...

  • git 命令设置代理

    // 查看当前代理设置 git config --global http.proxy // 设置当前代理为 htt...

  • 2019-08-05

    // 查看当前代理设置 git config --global http.proxy // 设置当前代理为 htt...

  • 设置代理

    查看当前代理设置 git config --global http.proxy 设置当前代理为 http://12...

  • 工具配置

    git配置 多项目配置不同用户 取消git全局配置 在项目下配置用户信息 CMD 配置 设置代理 设置为使用IE代理

  • 为git设置代理

    在使用git clone一些项目时,可能因目标地址被墙导致不能下载,这时需要为git设置代理翻墙。 我用的SS在本...

网友评论

      本文标题:为git设置代理

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