由于Github部署与国外服务器,导致下载速度特别缓慢。有时候下载到一半还会超时,导致我们必须重新下载,如何解决这些问题呢,这里提供了几个解决方案。
// git config -l
http.proxy=http://username:password@host.name:port/
https.proxy=http://username:password%2password@host.name:port/
http.sslverify=false
https.sslverify=false
http.proxyauthmethod=basic
注:如果密码有特殊字符,需经过URL编码转义
解决方案
这里推荐使用github的镜像网站进行下载
https://github.com.cnpmjs.org/
替换规则如下:
原 → https://github.com/代码库地址
新 → https://github.com.cnpmjs.org/代码库地址
我们对上面链接地址进行替换:
https://github.com/spring-pro... --- 原本的
https://github.com.cnpmjs.org... --- 替换后的
此时我们再去clone 替换后的这个地址
这里推荐一个网站:https://d.serctl.com/
这里拿下载spring-framework的发布包为例 下载地址如下
https://github.com/spring-projects/spring-framework/archive/v5.3.3.zip
直接通过浏览器下载速度如下
访问 https://d.serctl.com/ 并输入拷贝进去下载地址 并提交
稍等片刻,下面的下载历史会出现我们要下载的文件
小结
这里不局限于如上一个镜像代理下载地址哈
下面的都是:
还有其他的,小伙伴们自行挖掘哦。
ZTF|时间:2022-11-12
如果缘分安排我们相遇,请不要让她擦肩而过。扫一扫二维码,加我为好友吧!