Skip to main content

undo

Function undo 

Source
pub fn undo() -> Result<()>
Expand description

Restore the most recent snapshot: reset branch tips and metadata to their pre-mutation state. Refuses on a dirty worktree (it resets the current branch) and consumes the snapshot so it is one-shot.