table of contents
other versions
- Tumbleweed 2.5.4-1.1
- Leap-16.0
- Leap-15.6
| STG-UNDO(1) | StGit Manual | STG-UNDO(1) |
NAME¶
stg-undo - Undo the last command
SYNOPSIS¶
stg undo [OPTIONS]
DESCRIPTION¶
Reset the patch stack to the state before the last operation. Consecutive undos will go back to yet older stack states.
OPTIONS¶
-n <n>, --number=<n>
Undo the last <n> commands
--hard
Discard changes in the index and worktree
STGIT¶
Part of the StGit suite - see stg(1)
| 10/14/2025 | StGit 2.5.4 |