【发布时间】:2013-03-20 03:43:18
【问题描述】:
我在做
$ git tag
current
tag_example_to_test_task
$ git checkout tag_example_to_test_task
...
HEAD is now at 75fdde3... commit comment text example
$ git name-rev --name-only --tags HEAD
current
$ git describe --exact-match --tags
current
我需要用这样的命令结束执行序列:
$ git "some command here"
tag_example_to_test_task
如何做到这一点?如何获取当前签出标签的标签名称?
【问题讨论】:
-
您想列出所有标签吗? git标签-l