原文链接 常见的 github 加速方法如修改 hosts 文件、魔法上网、设置 proxy 等方法在此不在赘述,本文主要介绍在不进行多余网络配置的情况下,直接使用提供了 github 国内镜像服务的网站进行 github 各种资源拉取加速,在这里向各位提供 github 国内镜像服务的大佬们致敬。 加速地址一览 fastgit.org : https://doc.fastgit.org/ cnpmjs.org: https://github.com.cnpmjs.org/ gitclone.com: https://gitclone.com/ gitee: https://gitee.com/mirrors GitHub 文件加速: https://gh.api.99988866.xyz/ Github 仓库加速: https://github.zhlh6.cn/ Github 仓库加速: http://toolwa.com/github/ 加速 clone # 方法一:手动替换地址 #原地址 $ 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自动替换 $ 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 --gl...