STG-POP(1)
πΈ stg-pop β StGit Manual, bestie edition πΈ
omg hi π welcome to STG-POP(1), aka the stg-pop page from the StGit Manual. itβs giving βunapply those patches with main character energy,β and weβre gonna walk through it together π«Άβ¨
π NAME π
stg-pop β Pop (unapply) one or more applied patches π
β¨ SYNOPSIS β¨
stg pop [OPTIONS] [patch]...
stg pop [OPTIONS] --all
stg pop [OPTIONS] -n <number>
π¦ DESCRIPTION π¦
okay so picture this: youβve got applied patches, and stg pop pops them β aka unapplies one or more of them πβ¨
By default, the topmost applied patch is popped. yes bestie, just the top one gets the vibe check first π
If ranges of patches are specified, pop and push operations are performed such that only the patches specified on the command line are unapplied at the end of the operation. It is possible for some of these intermediate push operations to fail due to conflicts if patches are popped out of last-pushed first-popped order π so yeah, the middle of that whole situation can get spicy in a conflict way. fr fr.
π OPTIONS π
-a,--allβ pop all applied patches, the whole squad, every last one π-n <number>,--number=<number>β pop the specified<number>of patches. A negative number indicates to pop all but that number of patches β yes, negative math is invited to the function π-s,--spillβ keep patchesβ modifications in the index and worktree after popping π«Ά-k,--keepβ keep the local changes β¨
π STGIT π
Part of the StGit suite - see stg(1) π go read stg(1) for the whole suite, iykyk.
xoxo, this page is from StGit 2.7.0, dated 10/17/2026 π«Ά the footer said STG-POP(1) and she absolutely ate π
β¨ periodt.
π¦ 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