command to show tag in git code example
Example 1: git see tags
$ git tag -l -n2
Example 2: git tag from commit
$ git tag <tag_name> HEAD (for the last commit)
$ git tag -l -n2
$ git tag <tag_name> HEAD (for the last commit)