git show tags code example
Example 1: git add tag
git tag -a v1.2
git push origin v1.2
Example 2: git tag checkout
$ git checkout tags/v1.0 -b v1.0-branch
Switched to a new branch 'v1.0-branch'
Example 3: git choose tag
git checkout tags/1.1.4
Example 4: git see tags
$ git tag -l -n2
Example 5: git find out commit for tag
$ git rev-list -n 1 $TAG