create tag on given commit git 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 from commit
$ git tag <tag_name> HEAD (for the last commit)
git tag -a version.number -m "Tag Message"
git push origin <tagname>
$ git tag <tag_name> HEAD (for the last commit)