gbp-tag(1)

NAME
gbp-tag - Tag a Debian packages in a Git repository

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 tags the current head commit appropriately. It will in order:

•   Verify that it is being executed from the Debian branch.

•   Verify that the repository doesn't contain any uncommitted source changes.

•   Create a git tag using the information from \FCdebian/changelog\F[].

•   (Optionally) call a post tag hook.

OPTIONS

\FC--version\F[]
    Print version of the program, i.e. version of the git-buildpackage suite

\FC-v\F[], \FC--verbose\F[]
    Verbose execution

\FC-h\F[], \FC--help\F[]
    Print help and exit

\FC--color=\F[][auto|on|off]
    Whether to use colored output.

\FC--color-scheme=\F[]COLOR_SCHEME
    Colors to use in output (when color is enabled). The format for COLOR_SCHEME is '<debug>:<info>:<warning>:<error>'. Numerical values and color names are accepted, empty fields imply the default color. For example, \FC--git-color-scheme=\F[]\FC'cyan:34::'\F[] would show debug messages in cyan, info messages in blue and other messages in default (i.e. warning and error messages in red).

\FC--posttag=\F[]COMMAND
    Execute COMMAND after creating the tag.

    Exported environment variables are: GBP_TAG (the name of the generated tag), GBP_BRANCH (the branch the package was built from) and GBP_SHA1 (the sha1 of the commit the tag was created at).

\FC--[no-]sign-tags\F[]
    GPG sign all created tags.

\FC--keyid=\F[]GPG-KEYID
    Use this keyid for gpg signing tags.

\FC--debian-tag=\F[]TAG-FORMAT
    Use this tag format when tagging Debian versions, default is debian/%(version)s.

\FC--debian-tag-msg=\F[]tag-msg-format
    Use this tag message format when signing Debian versions, default is %(pkg)s Debian release %(version)s

\FC--retag\F[]
    Don't fail tag operations if a tag with the same version already exists. This is a command line only option that cannot be specified via \FCgbp.conf\F[].

\FC--debian-branch\F[]=BRANCH_NAME
    If you're not on this branch when invoking gbp tag it will fail. Default is master. 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 \FC--ignore-branch\F[].

\FC--ignore-branch\F[]
    Don't check if the current branch matches DEBIAN-BRANCH.

\FC--[no-]ignore-new\F[]
    Don't abort if there are uncommitted changes in the source tree or the current branch doesn't match the DEBIAN-BRANCH.

EXAMPLES
Create a tag with the current defaults

\FC
      gbp tag
    \F[]

Create using a more upstreamish tag format:

\FC
      gbp tag --debian-tag='v%(version)s'
    \F[]

CONFIGURATION FILES
Several \FCgbp.conf\F[] files are parsed to set defaults for the above command-line arguments. See the gbp.conf(5) manpage for details.

SEE ALSO
gbp-buildpackage(1), gbp-push(1), gbp.conf(5),

AUTHOR
Guido Günther <\FCagx@sigxcpu.org\F[]>