Examples of Tags
• Dev
• CM
• QA
• Production
To list all tags
git tag
git tag -l *s <- list any tag ending in s
git tag TAG_NAME
git tag -a v1 -m "Version 1 release"
Note: you can sign the tag.
Lives in .git/refs/tags/
Is a hashtag.
Delete a tag
git tag -d v1
To see what a tag contains
git show
Light weight tags
- Comments attached to a tag
Light weight tags point into the DAG.
Light weight tags point to a SHA hash of a commit
Heavy weight tags
git tag -a TAG_NAME
"Off to the side"
This writes the objects into ...
A copy of TAG and a BLOB
NOTES
Tags are not pushed by default.
git push --tags
git fetch --tags
git fetch blahtag