FastGit: Github镜像加速

2022年4月28日更新,细节参见官网
https://doc.fastgit.org/zh-cn/guide.html#web-的使用


FastGit 官网 FastGit使用指南


关于 FastGit 的使用,本质上与 git 有关。常规的面向 GitHub 的 clone 命令可能如下:

git clone https://github.com/author/repo

使用 FastGit 时,可使用如下命令:

git clone https://hub.fastgit.xyz/author/repo


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.org/A/A/archive/master.zip
# 或者 https://codeload.github.com/A/A/zip/master
wget https://download.fastgit.org/A/A/archive/master.zip

对于 raw 的代理

我们同样对 https://raw.githubusercontent.com/ (opens new window)进行了代理,地址为 https://raw.fastgit.org/


当遇到 FastGit 存在问题时的处理方法

  1. 请确认你的网络以及 DNS 工作正常
  2. 请查阅 https://status.fastgit.org (opens new window)以及 https://github.com/FastGitORG/uptime (opens new window)以确认 FastGit 是否正面临潜在的服务不可用可能性
  3. 更换阿里公共 DNS 避免潜在的 DNS 污染问题
  4. 通过 Tcpping 尝试与 FastGit IP 进行通信
posted @ 2021-12-24 16:30  麦克斯的园丁  阅读(6198)  评论(0编辑  收藏  举报