0
点赞
收藏
分享

微信扫一扫

git clone 加速下载。


ssh配置加速

windows教程。。。mac或者centos请自测。

在目录~/.ssh/config  没有手动创建

Host github.com
HostName github.com
User git
ProxyCommand connect -H 127.0.0.1:1080 %h %p

https加速很简单。。甚至可以直接用浏览器下载 比git clone要快很多

直接命令行配置。

git config --global https.proxy 'socks5://127.0.0.1:1080'
git config --global http.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 clone 加速下载。_github

举报

相关推荐

0 条评论