stg-undo - Undo the last operation
Reset the patch stack to the previous state. Consecutive invocations of "stg undo" will take you ever further into the past.
Undo the last N commands.
Discard changes in your index/worktree.
Part of the StGit suite - see stg(1)