STG-UNCOMMIT(1)
π NAME π
okay bestie, welcome to STG-UNCOMMIT(1) from the StGit Manual π«Ά
stg-uncommit β convert regular Git commits into StGit patches.
π¦ SYNOPSIS π¦
stg uncommit <patchname-1> [<patchname-2> ...]
stg uncommit -n number [<patchname-prefix>]
stg uncommit -t <committish> [-x]
π DESCRIPTION π
so picture this: youβve got one or more Git commits sitting at the base of your current stack, and stg uncommit turns them into StGit patches. The original Git commits are not modified β like, not even a little β and the StGit stack extends so those commits become the bottommost applied patches. Itβs literally the opposite of stg-commit(1), iykyk. β¨
By default, the number of patches to uncommit is decided by how many patch names you give on the command line. The first provided name is used for the first patch to uncommit, i.e. for the newest patch. π
The -n/--number option says how many patches to uncommit. When you use it, at most one patch name may be specified. That name is used as a prefix, and the patch number gets appended to it. If no patch names are provided on the command line, StGit automatically generates names based on the first lines of the commit messages. Cute, right? π
The -t/--to option means all commits up to and including the given commit should be uncommitted. The -x/--exclusive option may be used to exclude the "to" commit. πΈ
β οΈ only commits with exactly one parent can be uncommitted β in other words, merge commits may not be uncommitted. Not me inviting a merge commit to this party, because it cannot come. π
π OPTIONS π
-n <number>,--number=<number>β uncommit the specified number of commits.-t <committish>,--to=<committish>β uncommit to the specified committish.-x,--exclusiveβ exclude the commit specified by the--tooption.
π STGIT π
Part of the StGit suite β see stg(1).
mwah π this page is from StGit 2.7.0, dated 10/17/2026. 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