how to switch to a tag in git 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 tag a previous commit
git tag -a v1.2 9fceb02 -m "Message here"