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

命令行

使用 git clone http://<你的域名>/<用户名>/<仓库>.git 克隆仓库;推送时使用 HTTP Basic 认证,填入你的 GitWave 用户名和密码即可。

API

REST API 挂载在 /api/v1 下。注册接口会返回一个令牌,之后用 Authorization: Bearer <令牌> 访问需要认证的接口。

分支与合并

从默认分支切出一个新分支并推送,然后在网页上创建一个拉取请求。合并采用快进策略,合并后目标分支会直接指向合并提交。

完整手册

部署步骤、全部接口说明、项目结构与设计取舍都写在 /guide(由 README.md 自动生成,始终与代码同步)。

(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);});})();