tagging a commit in git code example
Example 1: git tag a previous commit
git tag -a v1.2 9fceb02 -m "Message here"
Example 2: git tag from commit
$ git tag <tag_name> HEAD (for the last commit)
Example 3: git create tag and push
git tag <tagname>