]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-tag.txt
Fix nasty approxidate bug
[thirdparty/git.git] / Documentation / git-tag.txt
CommitLineData
215a7ad1
JH
1git-tag(1)
2==========
2cf565c5
DG
3
4NAME
5----
215a7ad1 6git-tag - Create a tag object signed with GPG
2cf565c5
DG
7
8
2cf565c5
DG
9SYNOPSIS
10--------
61f81518 11'git-tag' [-a | -s | -u <key-id>] [-f | -d] [-m <msg>] <name> [<head>]
2cf565c5
DG
12
13DESCRIPTION
14-----------
bc162e40 15Adds a 'tag' reference in .git/refs/tags/
b7e438f9 16
bc162e40
LT
17Unless `-f` is given, the tag must not yet exist in
18`.git/refs/tags/` directory.
b7e438f9 19
bc162e40
LT
20If one of `-a`, `-s`, or `-u <key-id>` is passed, the command
21creates a 'tag' object, and requires the tag message. Unless
22`-m <msg>` is given, an editor is started for the user to type
23in the tag message.
b7e438f9 24
bc162e40 25Otherwise just the SHA1 object name of the commit object is
56b5e946 26written (i.e. a lightweight tag).
bc162e40
LT
27
28A GnuPG signed tag object will be created when `-s` or `-u
29<key-id>` is used. When `-u <key-id>` is not used, the
30committer identity for the current user is used to find the
31GnuPG key for signing.
2cf565c5 32
61f81518
KR
33`-d <tag>` deletes the tag.
34
d839091d
NW
35OPTIONS
36-------
37-a::
38 Make an unsigned, annotated tag object
39
40-s::
41 Make a GPG-signed tag, using the default e-mail address's key
42
43-u <key-id>::
44 Make a GPG-signed tag, using the given key
45
46-f::
47 Replace an existing tag with the given name (instead of failing)
48
49-d::
50 Delete an existing tag with the given name
51
52-m <msg>::
53 Use the given tag message (instead of prompting)
54
2cf565c5
DG
55
56Author
57------
3f971fc4
JH
58Written by Linus Torvalds <torvalds@osdl.org>,
59Junio C Hamano <junkio@cox.net> and Chris Wright <chrisw@osdl.org>.
2cf565c5
DG
60
61Documentation
62--------------
63Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
64
65GIT
66---
a7154e91 67Part of the gitlink:git[7] suite