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 進行通信


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM