githubusercontent和github加速镜像

加速地址一览

fastgit.org:https://doc.fastgit.org/
http://cnpmjs.orghttps://github.com.cnpmjs.org/
http://gitclone.comhttps://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 --global --unset url.https://github.com/.insteadof 

加速 release

# 原地址 
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

# 原地址 
$ 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://zhuanlan.zhihu.com/p/420873495 [1]

References:


  1. https://www.cnblogs.com/dereklovecc/p/16640096.html ↩︎