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