git set tag on commit code example
Example 1: create a tag from a commit/branch
git tag -a version.number -m "Tag Message"
git push origin <tagname>
Example 2: git tag a previous commit
git tag -a v1.2 9fceb02 -m "Message here"
git tag -a version.number -m "Tag Message"
git push origin <tagname>
git tag -a v1.2 9fceb02 -m "Message here"