(function(){try{var t=localStorage.getItem("gw-theme");if(t==="dark"||t==="light"){document.documentElement.setAttribute("data-theme",t);}}catch(e){}})();

运行在哪里

GitWave 完全运行在 Cloudflare Workers 上:HTTP 服务由 Workers 提供,元数据存放在 D1(SQLite),Git 对象存放在 R2 对象存储中。没有传统的服务器,也不需要运维。

实现了什么

完整的 Git 智能 HTTP 协议(clone / fetch / push)、仓库浏览与文件查看、提交历史与差异、议题与拉取请求、加星 / 关注 / 复刻,以及一套 REST API。

自托管

整个项目是开源的,用 wrangler 部署到你自己的 Cloudflare 账号即可,几分钟就能跑起来。

(function(){var b=document.getElementById("theme-toggle");if(!b){return;}b.addEventListener("click",function(){var r=document.documentElement.getAttribute("data-theme");var m=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;var n=r?r:(m?"dark":"light");n=n==="dark"?"light":"dark";document.documentElement.setAttribute("data-theme",n);try{localStorage.setItem("gw-theme",n);}catch(e){}b.setAttribute("data-theme-state",n);});})();