×

Github国内加速克隆及下载的镜像

2021-04-16 18:54:34 Falcon

目前主要有以下几个国内镜像

fastgit.org

https://doc.fastgit.org/

gitclone.com

https://gitclone.com/

gitee

https://gitee.com/mirrors

cnpmjs.org(目前主要使用这个)

https://github.com.cnpmjs.org/

克隆加速

#原地址

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

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

免替换方法

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

raw文件下载加速

#原地址:

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

#替换为

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

提供web界面的github资源加速网站:(未测试)

GitHub 文件加速:https://gh.api.99988866.xyz/

Github仓库加速:https://github.zhlh6.cn/

Github仓库加速:http://toolwa.com/github/

 

本文收录于