git get commit for tag code example
Example 1: git tag from commit
$ git tag <tag_name> HEAD (for the last commit)
Example 2: git find out commit for tag
$ git rev-list -n 1 $TAG
$ git tag <tag_name> HEAD (for the last commit)
$ git rev-list -n 1 $TAG