DOKK / manpages / debian 10 / stgit / stg-undo.1.en
STG-UNDO(1) StGit Manual STG-UNDO(1)

stg-undo - Undo the last operation

stg undo

Reset 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.

--hard

Discard changes in your index/worktree.

Part of the StGit suite - see stg(1)

09/02/2017 StGit