解决github速度太慢问题,换国内镜像站点

1.Github国内加速克隆及下载

fastgit.org
https://hub.fastgit.org/

gitclone.com
https://gitclone.com/

2.克隆加速

原地址
git clone https://github.com/kubernetes/kubernetes.git

改为
git clone https://hub.fastgit.org/kubernetes/kubernetes.git

或者

git clone https://gitclone.com/github.com/kubernetes/kubernetes.git

3.release下载加速

原地址
wget https://github.com/goharbor/harbor/releases/download/v2.0.2/harbor-offline-installer-v2.0.2.tgz

改为

wget https://hub.fastgit.org/goharbor/harbor/releases/download/v2.0.2/harbor-offline-installer-v2.0.2.tgz

4.免替换方法

git config --global url."https://hub.fastgit.org".insteadOf https://github.com

测试
git clone https://github.com/kubernetes/kubernetes.git

查看git配置信息

git config --global --list

取消设置

git config --global --unset url.https://github.com/.insteadof

5.raw文件下载加速

原地址:
wget https://raw.githubusercontent.com/kubernetes/kubernetes/master/README.md

替换为

wget https://raw.staticdn.net/kubernetes/kubernetes/master/README.md

推荐阅读更多精彩内容