解决github下载慢问题
一. 方法一:gitclone工具
1.1. 只需在git clone命令中将gitclone.com嵌入到克隆地址中即可
设置git超时参数 git config --global http.lowSpeedLimit 0 git config --global http.lowSpeedTime 999999 方法一(直接clone) git clone https://gitclone.com/github.com/tendermint/tendermint.git 方法二(设置git参数) git config --global url."https://gitclone.com/".insteadOf https:// git clone https://github.com/tendermint/tendermint.git
1.2. 效果是杠杠滴
二. 方法二:改 host
方法
2.1. 查相应域名ip
域名:github.com;
github.global.ssl.fastly.net;
codeload.github.com
查ip网站:https://www.ipaddress.com/
2.2. 修改/etc/hosts
2.3.重启网络sudo /etc/init.d/networking restart
2.4. 测试使用,速度飞起来
PS: 由于IP可能会变,当速度变慢时需要重复此方法