簡介
FastGit
?是一個對于?GitHub.com
?的鏡像加速器。使用共享資源為?GitHub
?加速。
FastGit中文指南
#?基本使用
關(guān)于 FastGit 的使用,本質(zhì)上與 git 有關(guān)。常規(guī)的面向 GitHub 的 clone 命令可能如下:
git clone https://github.com/author/repo
使用 FastGit 時,可使用如下命令:
git clone https://hub.fgit.cf/author/repo
正如您所見, FastGit 僅僅是 GitHub 的代理,所以我們僅需要替換遠程地址。
當(dāng)然,您也可以直接修改 git 的配置,使用 FastGit 替換所有指向 GitHub 的鏈接:
git config --global url."https://hub.fgit.cf/".insteadOf "https://github.com/"
git config protocol.https.allow always
實例:
git clone https://github.com/BC-SECURITY/Starkiller.git
git clone https://hub.fgit.cf/BC-SECURITY/Starkiller.git
#?Web使用
對于常見的 GitHub Web 操作, FastGit 的基礎(chǔ)節(jié)點也提供了最基本的支持。您可以直接訪問包含有 Web 支持的節(jié)點。出于安全考慮,我們會禁用包括 Cookie 以及 Session 等敏感權(quán)限。這意味著您不能登錄進行操作。
GitHub - BC-SECURITY/Starkiller: Starkiller is a Frontend for PowerShell Empire.
#?Release 和源碼存檔的下載
對于正常的 clone , push 操作,F(xiàn)astGit 已經(jīng)提供了相當(dāng)完善的操作。對于 Release 和源碼存檔的下載,我們可以使用如下方法進行操作。
# Release
# 假設(shè)下載鏈接為 https://github.com/A/A/releases/download/1.0/1.0.tar.gz
wget https://hub.fgit.cf/A/A/releases/download/1.0/1.0.tar.gz
# Codeload
# 假設(shè)下載鏈接為 https://hub.fgit.cf/A/A/archive/master.zip
# 或者 https://codeload.github.com/A/A/zip/master
wget https://hub.fgit.cf/A/A/archive/master.zip
示例:下載項目的Release
wget https://hub.fgit.cf/BC-SECURITY/Starkiller/archive/refs/tags/v2.7.1.zip
#?對于 raw 的代理
我們同樣對?https://raw.githubusercontent.com/?進行了代理,地址為?GitHub: Let’s build from here · GitHub文章來源:http://www.zghlxwxcb.cn/news/detail-793345.html
文章來源地址http://www.zghlxwxcb.cn/news/detail-793345.html
到了這里,關(guān)于Github鏡像加速器-FastGit的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!