Skip to content
cloudranger edited this page Nov 14, 2026 · 1 revision

zap records each clean as a run.

zap history
zap history lists the three zapped worktrees, their run id and backup refs

To bring back the latest run:

zap undo
zap undo re-adds three worktrees and recreates two branches

zap recreates each branch from its backup under refs/zap/backup/ and adds the worktree back at its old path.

  • zap undo <RUN> restores an older run. The run id is in the RUN column of zap history.
  • zap undo --dry-run shows what it would restore.
  • Ignored files (node_modules, build output, caches) don't come back. Reinstall them.

For day-to-day cleaning, use the picker. To get a warning before your disk fills, set up Disk alerts.

Clone this wiki locally