Skip to content

af undo

Undo your last operation, or the one named

Each change the operation wrote goes back where it found it, as jj’s undo takes an operation back, and a change it started is abandoned. It is refused if a change it wrote has been written since, by anyone, or is submitted or landed: a landing is taken back with af revert. Your workspace is snapshotted first, as before every command, and its files follow.

Usage

af undo [OPTIONS] [OPERATION]

Arguments

  • [OPERATION]

    Operation to undo, by its id or the start of it, as af op log shows it; your last one if omitted

Global options

Every af command also takes the global options.

Examples

af undo
af undo 3f2a9c1e

Type to search…

↑↓ navigate↵ selectEsc close