分支与远端
Graft 的 branch 和 remote 模型接近 Git。
Branches
Section titled “Branches”graft branch feature/searchgraft switch feature/searchgraft switch -c experiment main切换分支会把目标 commit 中的数据库 snapshot 和文件 materialize 到 worktree。
Fetch / Pull / Push
Section titled “Fetch / Pull / Push”fetch 更新 remote-tracking refs:
graft fetch origin maingraft fetch --all originpull 会 fast-forward 或进入 merge state:
graft pull origin mainpush 上传 repository objects、SQLite storage、external payloads 和 refs:
graft push origin maingraft push --all origingraft clone fs:///srv/graft/app mainclone 会配置 origin、fetch history、设置 upstream,并 materialize 选中的
分支。
Remote Backends
Section titled “Remote Backends”fs:///srv/graft/apps3_compatible://bucket/prefix?endpoint=https://...https://host/org/space详见 远端同步 和 Remote URI。