git tag -a v1.2 9fceb02 -m "Message here"
$ git tag <tag_name> HEAD (for the last commit)
git tag v1.2 9fceb02