gbp-tag(1)
π·οΈ gbp-tag β bestie, let's tag that release π
okay so real talk: this is the man page for gbp-tag(1), one little command from the git-buildpackage Manual. it's the part of the suite that goes "you made a Debian release, now let's stick a git tag on it so the timeline knows" π
β¨ SYNOPSIS β¨
gbp tag [--version] [--help] [--verbose] [--color=[auto|on|off]]
[--color-scheme= COLOR_SCHEME] [--ignore-branch]
[--[no-]ignore-new] [--[no-]sign-tags] [--keyid= GPG-KEYID]
[--debian-branch= BRANCH_NAME] [--debian-tag= tag-format]
[--debian-tag-msg= tag-msg-format] [--posttag= COMMAND]
[--retag]
πΈ DESCRIPTION πΈ
gbp tag slaps an appropriate tag on the current head commit. iconic behavior. here's the exact order it does things in, no cap:
- first it verifies you're running it from the Debian branch π
- then it verifies the repo has zero uncommitted source changes β clean tree only, bestie
- then it creates a git tag using the info it pulls from
debian/changelogπ - aaand (optionally) it calls a post tag hook π¦
periodt.
π OPTIONS π
--versionβ prints the version of the program, i.e. the version of thegit-buildpackagesuite β¨-v,--verboseβ verbose execution, give me all the tea π«-h,--helpβ print help and dip out π--color=[auto|on|off]β whether to use colored output π--color-scheme=COLOR_SCHEMEβ the colors to use in output (when color is enabled, obvi). the format forCOLOR_SCHEMEis'<debug>:<info>:<warning>:<error>'. numerical values and color names are both accepted, and empty fields imply the default color. for example,--git-color-scheme='cyan:34::'would show debug messages in cyan, info messages in blue, and other messages in default (i.e. warning and error messages in red) π¨--posttag=COMMANDβ executeCOMMANDafter creating the tag. the exported environment variables are:GBP_TAG(the name of the generated tag),GBP_BRANCH(the branch the package was built from) andGBP_SHA1(the sha1 of the commit the tag was created at) π₯--[no-]sign-tagsβ GPG sign all created tags π--keyid=GPG-KEYIDβ use this keyid for gpg signing tags π--debian-tag=TAG-FORMATβ use this tag format when tagging Debian versions, default isdebian/%(version)sπ·οΈ--debian-tag-msg=tag-msg-formatβ use this tag message format when signing Debian versions, default is%(pkg)s Debian release %(version)sπ--retagβ don't fail tag operations if a tag with the same version already exists. heads up bestie: this is a command line only option that cannot be specified viagbp.confβ οΈ--debian-branch=BRANCH_NAMEβ if you're not on this branch when invokinggbp tagit will fail. default ismaster. this is done to make sure you don't accidentally tag on the wrong branch π not being on this branch will be ignored when using--ignore-branchπ--ignore-branchβ don't check if the current branch matchesDEBIAN-BRANCHπ«--[no-]ignore-newβ don't abort if there are uncommitted changes in the source tree, or the current branch doesn't match theDEBIAN-BRANCHπ
π EXAMPLES π
create a tag with the current defaults, simple as:
gbp tag
create using a more upstreamish tag format, look at her go:
gbp tag --debian-tag='v%(version)s'
π CONFIGURATION FILES π
several gbp.conf files get parsed to set defaults for all the command-line arguments above. see the gbp.conf(5) manpage for the deets π§
π SEE ALSO π
gbp-buildpackage(1), gbp-push(1), gbp.conf(5),
π AUTHOR π
Guido GΓΌnther <agx@sigxcpu.org>
and that's the whole vibe π«Ά this page comes to you from the git-buildpackage Manual (that's the source, bestie), dated 26 May 2026 β gbp-tag(1), that's the manual name, slay πβ¨π¦
π¦ where this page comes from
- ubuntu stonking: git-buildpackage 0.9.43 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms