STG-UNDO(1)
π STG-UNDO π
okay so bestie, welcome to stg-undo(1) β it's a page straight out of the StGit Manual (section 1, if we're being official about it), and honestly? it's giving "oops, my bad" in the best way possible π«Ά
β¨ NAME β¨
stg-undo β undo the last command π
πΈ SYNOPSIS πΈ
stg undo [OPTIONS]
that's it. that's the whole vibe. no cap β¨
π¦ DESCRIPTION π¦
so here's the tea β: stg undo resets the patch stack to the state before the last operation. literally rewind, main character style π
and the iconic part? consecutive undos keep going back β each one takes you to yet older stack states. it's a whole time machine situation, one step at a time πβͺ
π OPTIONS π
-n <n>,--number=<n>β undo the last <n> commands, not just one. yes bestie, you can go back multiple steps at once π--hardβ discard changes in the index and worktree πβ οΈ like, actually throw them away. be so serious before you type this one, fr fr
π heads up: --hard tosses your index and worktree changes. once they're gone they're gone β no undo for your undo. vibe check first, please π
π§ STGIT π§
part of the StGit suite β see stg(1) for the whole family π iykyk
and that's the page, bestie β¨ this icon of a manpage is from StGit 2.7.0, dated 10/17/2026 β go forth and rewind responsibly π ππ
π¦ 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