stg-undo (1) - Linux Man Pages
stg-undo: Undo the last operation
stg-undo - Undo the last operation
DESCRIPTIONReset the patch stack to the previous state. Consecutive invocations of "stg undo" will take you ever further into the past.
-n N, --number N
- Undo the last N commands.
- Discard changes in your index/worktree.
STGITPart of the StGit suite - see stg(1)