mise dotfiles undo
- 用法:
mise dotfiles undo [-n --dry-run] [-y --yes] [REF] - 影响: 破坏性操作 — 可能删除或不可逆地覆盖
- 源代码:
src/cli/dotfiles/undo.rs
撤销某项操作对受跟踪文件所做的更改
Restores exactly the paths that an operation changed from the checkpoint it saved first, and leaves everything else as it is now. Without a reference, reverses the newest operation that has not been undone.
Works for operations that changed tracked files: mise bootstrap, mise dot add, apply, edit, unapply, capture, rollback, pull (including changes the watcher applied), and undo itself. Package installations, service state, and untracked files are not reversed.
参数
[REF]— 操作的检查点:数字 ID、latest、latest~N或commit:<sha>
标志
-n --dry-run— 显示计划但不做任何更改-y --yes— 无需提示直接应用-h --help— 打印帮助
Examples
Reverse the newest operation
mise dot undoShow what would be restored
mise dot undo --dry-runReverse the operation recorded as checkpoint 42
mise dot undo 42