stg-redo - Man Page

Undo the last undo operation


stg redo [OPTIONS]


If the last command was an undo, the patch stack state will be reset to its state before the undo. Consecutive redos will undo the effects of consecutive invocations of stg-undo(1).

It is an error to redo if the last stack-modifying command was not an undo.


-n <n>, --number=<n>

Undo the last <n> undos


Discard changes in the index and worktree


Part of the StGit suite - see stg(1)

Referenced By

stg(1), stg-log(1).

04/09/2024 StGit 2.4.6 StGit Manual