使用 Cloudflare Workers 创建的私人 GitHub 镜像站
镜像地址: https://gh.176685.xyz
将 github.com 替换为 gh.176685.xyz:
# 原地址
https://github.com/owner/repo
# 镜像地址
https://gh.176685.xyz/owner/repo
使用镜像站进行 git clone:
# 克隆公开仓库
git clone https://gh.176685.xyz/owner/repo.git
# 克隆到指定目录
git clone https://gh.176685.xyz/owner/repo.git my-project
https://gh.176685.xyz/raw/owner/repo/branch/file
https://gh.176685.xyz/api/repos/owner/repo
对于私有仓库,需要配置认证:
git clone https://YOUR_TOKEN@gh.176685.xyz/owner/repo.git
git config --global credential.helper store
git clone https://gh.176685.xyz/owner/repo.git
# 然后输入你的 GitHub 用户名和 Token
Powered by Cloudflare Workers & Hono