mise bootstrap dotfiles rollback
- Usage:
mise bootstrap dotfiles rollback [FLAGS] [PATH]… - Effect: destructive — may delete or irreversibly overwrite
- Source code:
src/cli/dotfiles/rollback.rs
Return files to the version a checkpoint holds
Without --to, each path returns to its most recent saved version that differs from what is on disk; unrelated checkpoints never influence the choice. With --to <ref>, the named checkpoint is the source, and --all selects everything it covers. The current state is saved in a protective checkpoint first, so mise bootstrap dotfiles undo can reverse it.
Arguments
[PATH]…— Paths to roll back (files or directories)
Flags
--to <REF>— The checkpoint to roll back to: numeric ID,latest,latest~N, orcommit:<sha>--all— With --to: everything the checkpoint covers-n --dry-run— Show the plan without changing anything-y --yes— Apply without prompting--force— Replace a path whose type changed (file, symlink, directory)-h --help— Print help
Examples:
mise bootstrap dotfiles rollback ~/.config/hypr/bindings.lua
mise bootstrap dotfiles rollback ~/.zshrc --to 42
mise bootstrap dotfiles rollback --to latest~3 --all --dry-run