STG-PICK(1)
π STG-PICK(1) β the StGit Manual, but make it group-chat β¨
okay so bestie, gather round π«Ά this is stg-pick, one of the little icons of the StGit suite, and it's literally here to help you yank patches from other branches (or straight-up commit objects) into your current series. no cap, it's giving main character energy π
β¨ NAME β¨
stg-pick β import a patch from another branch or a commit object π
πΈ SYNOPSIS πΈ
stg pick [OPTIONS] <source>...
stg pick [OPTIONS] [--name NAME] [--parent COMMITTISH] <source>
stg pick [OPTIONS] --fold [--file PATH]... <source>...
stg pick [OPTIONS] --update <source>...
π¦ DESCRIPTION π¦
So what does it do? It imports one or more patches from another branch or commit object into your current series π that's the whole vibe.
By default, the imported patch's name is reused β like, it keeps its own name, iconic β but you can override it with the --name option if you're feeling β¨creativeβ¨. And a commit object can be reverted with the --revert option, which is lowkey so useful.
When you're using the --expose option, the format of the commit message is determined by the stgit.pick.expose-format configuration option π this option is a format string, exactly the kind you'd hand to the --pretty option of git-show(1). The default is:
format:%B%n(imported from commit %H)
which appends the commit hash of the picked commit to the patch's commit message. cute, right? π₯°
π OPTIONS π
-B <branch>,--ref-branch=<branch>β pick patches from<branch>πΏ-r,--revertβ revert the given commit object, undoing its whole deal π-x,--exposeβ append the imported commit id to the patch log π--noapplyβ keep the imported patch unapplied (chill, it just sits there) π€-n <name>,--name=<name>β use<name>for the patch name, your call bestie β¨-p <committish>,--parent=<committish>β use<committish>as parent π§¬--committer-date-is-author-dateβ instead of using the current time as the committer date, use the author date of the commit as the committer date. time travel, but make it git β°--foldβ fold the commit object into the current patch π«Ά--updateβ like fold, but only update the current patch's files π-f <path>,--file=<path>β only fold the given file (and yes, you may use this multiple times, go off) π
π STGIT π
Part of the StGit suite β see stg(1) π
fr fr, this whole page is from StGit 2.7.0, dated 10/17/2026 β slay, 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