私がやっている
$ 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
どうやってするか?現在チェックアウトされているタグのタグ名を取得するには?