Make git-send-pack exit with error when some refs couldn't be pushed out
[git/dscho.git] / Documentation / git-tag.txt
blobe8892bb0b05884c379b9b32548c799bd0aca6f1b
1 git-tag(1)
2 ==========
4 NAME
5 ----
6 git-tag -  Create a tag object signed with GPG
9 SYNOPSIS
10 --------
11 'git-tag' [-a | -s | -u <key-id>] [-f | -d] [-m <msg>] <name> [<head>]
13 DESCRIPTION
14 -----------
15 Adds a 'tag' reference in .git/refs/tags/
17 Unless `-f` is given, the tag must not yet exist in
18 `.git/refs/tags/` directory.
20 If one of `-a`, `-s`, or `-u <key-id>` is passed, the command
21 creates a 'tag' object, and requires the tag message.  Unless
22 `-m <msg>` is given, an editor is started for the user to type
23 in the tag message.
25 Otherwise just the SHA1 object name of the commit object is
26 written (i.e. a lightweight tag).
28 A GnuPG signed tag object will be created when `-s` or `-u
29 <key-id>` is used.  When `-u <key-id>` is not used, the
30 committer identity for the current user is used to find the
31 GnuPG key for signing.
33 `-d <tag>` deletes the tag.
35 OPTIONS
36 -------
37 -a::
38         Make an unsigned, annotated tag object
40 -s::
41         Make a GPG-signed tag, using the default e-mail address's key
43 -u <key-id>::
44         Make a GPG-signed tag, using the given key
46 -f::
47         Replace an existing tag with the given name (instead of failing)
49 -d::
50         Delete an existing tag with the given name
52 -m <msg>::
53         Use the given tag message (instead of prompting)
56 Author
57 ------
58 Written by Linus Torvalds <torvalds@osdl.org>,
59 Junio C Hamano <junkio@cox.net> and Chris Wright <chrisw@osdl.org>.
61 Documentation
62 --------------
63 Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
65 GIT
66 ---
67 Part of the gitlink:git[7] suite