Git Tags

Creating and managing tags

Create Tag

git tag v1.0.0 # lightweight tag
git tag -a v1.0.0 -m 'version 1.0' # annotated tag
git tag v1.0.0  # tag specific commit

List Tags

git tag # list all tags
git tag -l 'v1.*' # list matching tags
git show v1.0.0 # show tag details

Push Tags

git push origin v1.0.0 # push specific tag
git push origin --tags # push all tags

Delete Tag

git tag -d v1.0.0 # delete local tag
git push origin --delete v1.0.0 # delete remote tag