Remotes and mutations
This page is fetch, pull, push, and branch switch for a workspace worktree. The Server runs the Git operations; clients only display the result.
POST .../git/branch
Switches to a local branch or creates a new branch from the current HEAD.
POST .../git/checkout
Creates a local tracking branch from a unique remote-tracking ref, or switches to the local branch when it already exists.
POST .../git/fetch
Runs
git fetch --prune, optionally for one remote, withGIT_TERMINAL_PROMPT=0.POST .../git/pull
Runs
git pull --ff-only, orgit pull --rebasewhen requested.POST .../git/push
Runs
git push, optionally--force-with-leaseand-u.
Successful branch switch, remote checkout, and pull refresh the workspace registry's live branch and commit so sidebar and overview identity match HEAD. Remote mutations reuse the same per-workspace lock and reject while an ACP prompt is running.
Auth failures, a missing upstream, a non-fast-forward pull, a stale force-with-lease, and a dirty worktree switch return structured problem details rather than raw Git stderr.
Where it differs
Desktop
Mobile