git add tag to commit code example
Example 1: git create tag and push
git tag -a v1.4 -m "my version 1.4"
Example 2: git add tag
git tag -a v1.2
git push origin v1.2
Example 3: create a tag from a commit/branch
git tag -a version.number -m "Tag Message"
git push origin <tagname>
Example 4: 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