6 git-tag - Create, list, delete or verify a tag object signed with GPG
12 'git-tag' [-a | -s | -u <key-id>] [-f | -v] [-m <msg> | -F <file>] <name> [<head>]
13 'git-tag' -d <name>...
14 'git-tag' -l [<pattern>]
18 Adds a 'tag' reference in `.git/refs/tags/`
20 Unless `-f` is given, the tag must not yet exist in
21 `.git/refs/tags/` directory.
23 If one of `-a`, `-s`, or `-u <key-id>` is passed, the command
24 creates a 'tag' object, and requires the tag message. Unless
25 `-m <msg>` is given, an editor is started for the user to type
28 Otherwise just the SHA1 object name of the commit object is
29 written (i.e. a lightweight tag).
31 A GnuPG signed tag object will be created when `-s` or `-u
32 <key-id>` is used. When `-u <key-id>` is not used, the
33 committer identity for the current user is used to find the
34 GnuPG key for signing.
36 `-d <tag>` deletes the tag.
38 `-v <tag>` verifies the gpg signature of the tag.
40 `-l <pattern>` lists tags that match the given pattern (or all
41 if no pattern is given).
46 Make an unsigned, annotated tag object
49 Make a GPG-signed tag, using the default e-mail address's key
52 Make a GPG-signed tag, using the given key
55 Replace an existing tag with the given name (instead of failing)
58 Delete existing tags with the given names.
61 Verify the gpg signature of given the tag
64 List tags that match the given pattern (or all if no pattern is given).
67 Use the given tag message (instead of prompting)
70 Take the tag message from the given file. Use '-' to
71 read the message from the standard input.
75 By default, git-tag in sign-with-default mode (-s) will use your
76 committer identity (of the form "Your Name <your@email.address>") to
77 find a key. If you want to use a different default key, you can specify
78 it in the repository configuration as follows:
81 signingkey = <gpg-key-id>
85 Written by Linus Torvalds <torvalds@osdl.org>,
86 Junio C Hamano <junkio@cox.net> and Chris Wright <chrisw@osdl.org>.
90 Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
94 Part of the gitlink:git[7] suite