Checkpoint a directory (rollback point)
sh_checkpointSave a snapshot of your working directory under a label before making risky changes. Restore later with sh_restore. Excludes .git and node_modules.
Instructions
Snapshot a working directory under a label so you can restore it later with sh_restore. Excludes .git and node_modules. Take one before a risky or irreversible change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Directory to snapshot. Defaults to server cwd. | |
| label | Yes | Checkpoint name ([A-Za-z0-9._-]). |