git tag options code example
Example 1: git tag a previous commit
git tag -a v1.2 9fceb02 -m "Message here"
Example 2: git find out commit for tag
$ git rev-list -n 1 $TAG
git tag -a v1.2 9fceb02 -m "Message here"
$ git rev-list -n 1 $TAG