git-tag: support -F <file> option
[git/mingw.git] / Documentation / git-tag.txt
blob48b82b86f83df4e3fb381da329b48fe12a4ce82d
1 git-tag(1)
2 ==========
4 NAME
5 ----
6 git-tag - Create a tag object signed with GPG
9 SYNOPSIS
10 --------
11 [verse]
12 'git-tag' [-a | -s | -u <key-id>] [-f | -d] [-m <msg> | -F <file>]
13          <name> [<head>]
14 'git-tag' -l [<pattern>]
16 DESCRIPTION
17 -----------
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
26 in the tag message.
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 `-l <pattern>` lists tags that match the given pattern (or all
39 if no pattern is given).
41 OPTIONS
42 -------
43 -a::
44         Make an unsigned, annotated tag object
46 -s::
47         Make a GPG-signed tag, using the default e-mail address's key
49 -u <key-id>::
50         Make a GPG-signed tag, using the given key
52 -f::
53         Replace an existing tag with the given name (instead of failing)
55 -d::
56         Delete an existing tag with the given name
58 -l <pattern>::
59         List tags that match the given pattern (or all if no pattern is given).
61 -m <msg>::
62         Use the given tag message (instead of prompting)
64 -F <file>::
65         Take the tag message from the given file.  Use '-' to
66         read the message from the standard input.
68 Author
69 ------
70 Written by Linus Torvalds <torvalds@osdl.org>,
71 Junio C Hamano <junkio@cox.net> and Chris Wright <chrisw@osdl.org>.
73 Documentation
74 --------------
75 Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
77 GIT
78 ---
79 Part of the gitlink:git[7] suite