STG-REDO(1)
π STG-REDO(1) β the StGit Manual, bestie edition π
okay so real talk, this is the page for stg-redo, part of the StGit Manual. yes it's a whole manual page. no I will not be normal about it. πΈ
β¨ NAME β¨
stg-redo β undo the last undo operation π«Ά
like, you un-did something, and now you wanna re-do it. the circle of life fr fr.
β¨ SYNOPSIS β¨
stg redo [OPTIONS]
that's it. that's the whole vibe check. π«
β¨ DESCRIPTION β¨
okay so picture this π β if the last command you ran was an undo, then the patch stack state gets reset right back to its state before the undo. so you're basically rewinding the rewind. iconic behavior honestly.
and the way that consecutive redos work? each one undoes the effects of consecutive invocations of stg-undo(1). so redo, redo, redo just walks you forward through the undos in order. main character energy. β¨
β οΈ but bestie, hear me β it is an error to redo if the last stack-modifying command was not an undo. no undo, no redo. that's the rule. π
β¨ OPTIONS β¨
-n <n>,--number=<n>β undo the last n undos π like, you can redo a whole stack of undos at once. go off.--hardβ discard changes in the index and worktree π so whatever's sitting in your index and worktree? gone. not playing around with this one, ngl.
β¨ STGIT β¨
part of the StGit suite β see stg(1) π (iykyk)
and that's the whole page, bestie π¦ go forth and redo responsibly, mwah π
StGit 2.7.0 πΈ 10/17/2026 π β yeah that's the version and the date, stamped right at the end like a little signature. slay. β
π¦ where this page comes from
- opensuse-leap 16.0: stgit 2.7.0-bp160.1.1 Β· GPL-2.0-only
- opensuse-leap 16.0: stgit 2.7.0-bp160.1.1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms