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