GitHub、Google等镜像加速地址收集

摘要
本文用于收集GitHub、Google等镜像/加速地址。

GitHub

GitHub加速地址一览

站源 地址 缓存
github.com hub.fastgit.xyz
raw.githubusercontent.com raw.fastgit.org
github.githubassets.com assets.fastgit.org
customer-stories-feed.github.com customer-stories-feed.fastgit.org 480 分钟
Github Download download.fastgit.org 480 分钟
GitHub Archive archive.fastgit.org

使用

1.加速 clone

方法一:加前缀

直接在copy出来的url前加https://gh.api.99988866.xyz/即可,也可以直接访问,在input输入。

# 原地址
git clone https://github.com/docker/compose.git
# 加速下载方法一
git clone https://gh.api.99988866.xyz/https://github.com/docker/compose.git
# 加速下载方法二
git clone https://ghproxy.com/https://github.com/docker/compose.git

方法二:替换GitHub为加速域名

# 原地址
git clone https://github.com/docker/compose.git
# 加速下载方法一
git clone https://hub.fastgit.xyz/docker/compose.git
# 加速下载方法二
git clone https://github.com.cnpmjs.org/docker/compose.git
# 加速下载方法三
git clone https://gitclone.com/github.com/docker/compose.git

方法三:配置git自动替换

  • 使用镜像地址替换所有指向 GitHub 的链接
git config --global url."https://hub.fastgit.xyz/".insteadOf "https://github.com/"
git config protocol.https.allow always
  • 查看git配置信息
git config --global --list
  • 取消设置
git config --global --unset url."https://hub.fastgit.xyz/".insteadof

2.加速 Release

对于正常的 clone , push 操作,FastGit 已经提供了相当完善的操作。对于 Release 和源码存档的下载,我们可以使用如下方法进行操作。

  • Release
# 假设下载链接为 https://github.com/A/A/releases/download/1.0/1.0.tar.gz
wget https://download.fastgit.org/A/A/releases/download/1.0/1.0.tar.gz
  • Codeload
# 假设下载链接为 https://hub.fastgit.xyz/A/A/archive/master.zip
# 或者 https://codeload.github.com/A/A/zip/master
wget https://download.fastgit.org/A/A/archive/master.zip

3.加速 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

Google

谷歌镜像列表——每个月定期更新:https://snailwish.com/508/

谷歌搜索 镜像

Google scholar 谷歌学术镜像

思谋学术导航:https://ac.scmor.com/

posted @ 2022-08-03 20:54  云吱  阅读(3195)  评论(0编辑  收藏  举报