how to create annotated tag?

666 views
Skip to first unread message

zhaok...@gmail.com

unread,
Mar 29, 2017, 10:35:42 PM3/29/17
to tortoisegit-users
I tried to create tag with TortoiseGit rev2.4.0.2 but didn't find a way to create a annotated one...the below is the steps
- select TortoiseGit -> show log
- right click on a commit, and select Create Tag at this revision...
- input Tag Name and click OK (The Track Option is a grey tristate) 

Sven Strickroth

unread,
Mar 30, 2017, 2:08:23 AM3/30/17
to tortoise...@googlegroups.com, zhaok...@gmail.com
Just enter some text into the "Message" textbox additionally to a tag
name and an annotated tag will be created.

--
Best regards,
Sven Strickroth
PGP key id F5A9D4C4 @ any key-server

zhaok...@gmail.com

unread,
Mar 31, 2017, 2:55:32 AM3/31/17
to tortoisegit-users, zhaok...@gmail.com

在 2017年3月30日星期四 UTC+8下午2:08:23,Sven Strickroth写道:
Thanks for the help. It looks a little strange for me because the command line option is "-a" for annotated tag and "-m" is for the message. It could be better if there's a checkbox with label "Annotated" or something...

Sven Strickroth

unread,
Mar 31, 2017, 8:08:50 AM3/31/17
to tortoise...@googlegroups.com, zhaok...@gmail.com
Am 31.03.2017 um 08:55 schrieb zhaok...@gmail.com:
> Just enter some text into the "Message" textbox additionally to a tag
> name and an annotated tag will be created.

> Thanks for the help. It looks a little strange for me because the
> command line option is "-a" for annotated tag and "-m" is for the
> message. It could be better if there's a checkbox with label "Annotated"
> or something...

In TortoiseGit you can only create an annotated tag if you sign it or
enter a message.

Btw. https://git-scm.com/docs/git-tag states: "If -m <msg> or -F <file>
is given and -a, -s, and -u <keyid> are absent, -a is implied."

zhaok...@gmail.com

unread,
Mar 31, 2017, 10:59:44 PM3/31/17
to tortoisegit-users, zhaok...@gmail.com
在 2017年3月31日星期五 UTC+8下午8:08:50,Sven Strickroth写道:
Yes you're correct. But I'm still wondering how to deal with null message, which I can use command line
  git tag -a -m "" ... 
Reply all
Reply to author
Forward
0 new messages