Git Tags Cheat Sheet

A short list of most useful Git commands to work with git tags. These should cover 90% of your needs.


###    TAGS
#create tag (annotated = with extra meta information)
git tag -a ver1.4 -m 'my version 1.4'

#list tags
git tag

#delete tag
git tag -d XXX

#delete remote tag
#You just need to push an 'empty' reference to the remote tag name:
git push origin :tagname

#push tags to remote
#specific tag:
git push origin v1.5

#all tags:
git push origin --tags