blob: fa6a7561236f70808994cf63c37b400b6e337318 [file] [log] [blame]
David Greaves2cf565c2005-05-10 22:32:30 +01001git-mktag(1)
2============
David Greaves2cf565c2005-05-10 22:32:30 +01003
4NAME
5----
6git-mktag - Creates a tag object
7
8
9SYNOPSIS
10--------
Martin von Zweigbergk7791a1d2011-07-01 22:38:26 -040011[verse]
Junio C Hamano33e8fc82015-10-16 11:27:42 -070012'git mktag'
David Greaves2cf565c2005-05-10 22:32:30 +010013
14DESCRIPTION
15-----------
David Greavesc1bdacf2005-05-10 22:32:38 +010016Reads a tag contents on standard input and creates a tag object
17that can also be used to sign other objects.
18
19The output is the new tag's <object> identifier.
20
21Tag Format
22----------
Junio C Hamano33e8fc82015-10-16 11:27:42 -070023A tag signature file, to be fed to this command's standard input,
24has a very simple fixed format: four lines of
David Greavesc1bdacf2005-05-10 22:32:38 +010025
26 object <sha1>
27 type <typename>
28 tag <tagname>
Junio C Hamano6cfec032007-06-10 16:00:36 -070029 tagger <tagger>
David Greavesc1bdacf2005-05-10 22:32:38 +010030
Junio C Hamano6cfec032007-06-10 16:00:36 -070031followed by some 'optional' free-form message (some tags created
Thomas Ackermann2de9b712013-01-21 20:17:53 +010032by older Git may not have `tagger` line). The message, when
Junio C Hamano6cfec032007-06-10 16:00:36 -070033exists, is separated by a blank line from the header. The
Thomas Ackermann2de9b712013-01-21 20:17:53 +010034message part may contain a signature that Git itself doesn't
Junio C Hamano6cfec032007-06-10 16:00:36 -070035care about, but that can be verified with gpg.
David Greaves2cf565c2005-05-10 22:32:30 +010036
David Greaves2cf565c2005-05-10 22:32:30 +010037GIT
38---
Christian Couder9e1f0a82008-06-06 09:07:32 +020039Part of the linkgit:git[1] suite