GitHub Proxy

Fixed-upstream HTTPS proxy ยท SSH is not supported

Git over HTTPS

Replace the https://github.com/ prefix in a repository URL with https://gh-proxy.yume-hatsuyuki.moe/gh/.

git remote set-url origin https://gh-proxy.yume-hatsuyuki.moe/gh/OWNER/REPOSITORY.git
git push -u origin main
Supported endpoints
PathUpstreamUse
/gh/*github.comGit HTTPS, repository pages and GitHub paths
/raw/*raw.githubusercontent.comRaw files
/release/*github.comRelease assets
/archive/*github.comSource ZIP/TAR.GZ
/codeload/*codeload.github.comSource archives
/api/*api.github.comREST API and GraphQL
/gist/*gist.github.comGist pages
/gist-raw/*gist.githubusercontent.comGist raw files
/avatars/*avatars.githubusercontent.comAvatar images
/assets/*github.githubassets.comGitHub static assets
Examples

Raw file:

gh-proxy.yume-hatsuyuki.moe/raw/OWNER/REPOSITORY/BRANCH/PATH/TO/FILE

Release asset:

gh-proxy.yume-hatsuyuki.moe/release/OWNER/REPOSITORY/releases/download/TAG/FILE

Source archive:

gh-proxy.yume-hatsuyuki.moe/archive/OWNER/REPOSITORY/archive/refs/heads/BRANCH.zip

API:

gh-proxy.yume-hatsuyuki.moe/api/repos/OWNER/REPOSITORY

Requests are forwarded only to fixed GitHub-related upstream hosts; arbitrary destination URLs are not accepted. Git protocol and API requests are not cached. GitHub web-page HTML is not fully rewritten, so this is not a complete website mirror. Public deployments can be used by anyone unless an access key is configured.