git get tags code example
Example 1: git tag checkout
$ git checkout tags/v1.0 -b v1.0-branch
Switched to a new branch 'v1.0-branch'
Example 2: git see tags
$ git tag -l -n2
Example 3: git find out commit for tag
$ git rev-list -n 1 $TAG
$ git checkout tags/v1.0 -b v1.0-branch
Switched to a new branch 'v1.0-branch'
$ git tag -l -n2
$ git rev-list -n 1 $TAG