2018-04-11 gitのHEADのtag nameをコマンドで取得する IT git describe --tags --exact-match で取得できる。HEADが指しているcommitにtagが無ければ空文字が返される。 参考: stackoverflow.com