Tagging

Tagging

Create an annotated tag

$ git tag -a v1.0.0 -m "First release"

Tag a past commit

$ git tag -a v0.9.0 -m "Beta release" <hash>

Push tags to remote

$ git push origin v1.0.0            # single tag
$ git push origin --tags            # all tags

Delete a tag (local and remote)

$ git tag -d v1.0.0                 # local
$ git push origin --delete v1.0.0   # remote
On this page