$ 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 –