常见的 github 加速方法如修改 hosts
文件、魔法上网、设置 proxy
等方法在此不在赘述,本文主要介绍在不进行多余网络配置的情况下,直接使用提供了 github 国内镜像服务的网站进行 github 各种资源拉取加速,在这里向各位提供 github 国内镜像服务的大佬们致敬。
加速地址一览
加速 clone
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
$ git clone https://github.com/kubernetes/kubernetes.git
$ git clone https://github.com.cnpmjs.org/kubernetes/kubernetes.git
$ git clone https://hub.fastgit.org/kubernetes/kubernetes.git
$ git clone https://gitclone.com/github.com/kubernetes/kubernetes.git
$ git config --global url."https://hub.fastgit.org".insteadOf https://github.com
$ git clone https://github.com/kubernetes/kubernetes.git
$ git config --global --list
$ git config --global --unset url.https://github.com/.insteadof
|
加速 release
1 2 3 4 5 6 7 8 9 10 11
|
wget https://github.com/goharbor/harbor/releases/download/v2.0.2/harbor-offline-installer-v2.0.2.tgz
wget https://download.fastgit.org/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
|
加速 raw
1 2 3 4 5 6 7 8 9 10 11
|
$ wget https://raw.githubusercontent.com/kubernetes/kubernetes/master/README.md
$ wget https://raw.staticdn.net/kubernetes/kubernetes/master/README.md
$ wget https://raw.fastgit.org/kubernetes/kubernetes/master/README.md
|
参考文献
转自: https://blog.frytea.com/archives/504/