Git Reference
Git Reference / Tags & releases

16Tags & releases

Create tags

Annotated tags store author, date and message — use them for releases.

git tag -a v1.0.0 -m "First stable release"
git tag v1.0.0-rc1                # lightweight
git tag -a v0.9.0 a1b2c3d         # tag an old commit
git push origin v1.0.0

Use tags

List, describe and package.

git tag -l "v1.*"
git describe --tags         # v1.0.0-14-ga1b2c3d
git tag -d v1.0.0 && git push origin :refs/tags/v1.0.0
git archive --format=zip v1.0.0 > release.zip