git clone 加速下载。

青春壹個敷衍的年華 提交于 2021-01-06 07:42:49

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"

效果

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!