add tag to commit code example
Example 1: git tag a previous commit
git tag -a v1.2 9fceb02 -m "Message here"
Example 2: git create tag and push
git tag <tagname>
Example 3: how to push tag for a commit
git tag "tag_name" "commit_hash" # fill tag_name and commit_hash
git push --tags # to push created tag