Fork me on GitHub

GitHub 文件加速

GitHub文件链接带不带协议头都可以,支持release、archive以及文件,右键复制出来的链接都是符合标准的,更多用法、clone加速请参考这篇文章

release、archive使用cf加速,文件会跳转至JsDelivr

注意,不支持项目文件夹

分支源码:https://github.com/hunshcn/project/archive/master.zip

release源码:https://github.com/hunshcn/project/archive/v0.1.0.tar.gz

release文件:https://github.com/hunshcn/project/releases/download/v0.1.0/example.zip

分支文件:https://github.com/hunshcn/project/blob/master/filename

git 命令参考
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://githubUserName:ghp_*******@gh.YouUrl.com/https://github.com/githubUserName/GitProject.git
git push -u origin main

部署到cf的index代码 :https://github.com/joyanhui/gh-proxy/blob/master/index.js

首页代码 要开github pages哦 :https://github.com/joyanhui/gh-proxy/blob/gh-pages/index.html

项目基于Cloudflare Workers,开源于GitHub hunshcn/gh-proxy 开源于GitHub joyanhui/gh-proxy