commit tags code example
Example 1: git commit and tag
git tag -a v1.0 7cceb02 -m "Your message here"
Example 2: git push tags
#from git 1.8.3 you can use
git push --follow-tags
#single tag push
git push origin
#All tags (if possible use --follow-tags 'cause it's safer)
git push --tags
Example 3: git tag from commit
$ git tag HEAD (for the last commit)