mini undo

Reverts the last state change by one step.

↔ See the interactive form (/mini:…)

Usage

mini undo [options]

  --dry-run  Preview only — print what would be reverted and exit, without changing anything (for /mini:undo)
  --yes      Skip the confirmation and revert directly, non-interactive (for /mini:undo)

Description

The terminal command. Reverts the last state change by one step — a phase or step status move, and a soft-reset of the auto-commit when the last change committed. Mini remembers only one step back, so this is a one-shot, irreversible action: there is no undo of the undo. Run on its own it shows what it would revert and asks for confirmation; --dry-run only previews and changes nothing, --yes reverts straight away without the prompt. It touches only the state under .mini/.

Examples

# Preview what would be reverted, then confirm
mini undo

# See the preview without changing anything
mini undo --dry-run

# Revert directly, no confirmation
mini undo --yes