Skip to content

Commit dd686cd

Browse files
Thomas Rastgitster
authored andcommitted
git-tag(1): we tag HEAD by default
The <commit>|<object> argument is actually not explained anywhere (except implicitly in the description of an unannotated tag). Write a little explanation, in particular to cover the default. Signed-off-by: Thomas Rast <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3322ad4 commit dd686cd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Documentation/git-tag.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ This option is only applicable when listing tags without annotation lines.
126126
linkgit:git-check-ref-format[1]. Some of these checks
127127
may restrict the characters allowed in a tag name.
128128

129+
<commit>::
130+
<object>::
131+
The object that the new tag will refer to, usually a commit.
132+
Defaults to HEAD.
133+
134+
129135
CONFIGURATION
130136
-------------
131137
By default, 'git tag' in sign-with-default mode (-s) will use your

0 commit comments

Comments
 (0)