gwz snapshot¶
Record or list workspace snapshots.
A snapshot captures selected member revisions under a workspace-level name so the workspace can later be materialized or pulled back to that coordinated state.
Arguments And Options¶
| Item | Meaning |
|---|---|
[name] |
Snapshot name to record. Omit to list existing snapshots. |
--list |
List existing snapshots instead of recording one. |
--branch[=<name>] |
Snapshot branch heads instead of observed worktree state. |
Examples¶
Record a snapshot:
Record all members explicitly:
Record the current attached branch for all selected members:
Record a named local branch without switching worktrees:
List snapshots:
Materialize a snapshot:
Pull to a snapshot:
Notes¶
- Use snapshots for reproducible workspace checkpoints that are not necessarily release tags.
--branchwith no value requires every selected member to be attached to a born branch with the same branch name. Detached, unborn, or mixed branch selections are rejected.--branch <name>resolvesrefs/heads/<name>in each selected member without switching worktrees and records that commit in the snapshot.- Snapshot listings render as human text by default and as a listing object with
--json.