GET: repo → worktree — clone, checkout, switch, restore

GET reads from the repo into the worktree: it is the clone / checkout / switch / restore verb. Depending on the URI it clones over a transport scheme, switches wt+cur to a branch, detaches on a sha, or restores a single file — always resetting the worktree to match the chosen tip.

CLI use

The forms span branch switching, detached checkout, single-file restore, and remote fetch; the bareword picks branch vs path automatically.

Flags

--force turns GET from a careful merge into a tree reset; --prune additionally clears wt-only clutter. Untracked files survive unless pruned.

Refusals

Aborts before touching the wt rather than half-applying, and adds a fast-forward rule when syncing a local branch from its remote; preview the refusals risk-free with HEAD, the read-only dry-run.