Git tags
- will list all the tags in the repo
git tag -l 'v1.8.5*'
will use the wild card to list only the matches
Creating Tags
- lightweight tag: is very much like a branch that doesn’t change – it’s just a pointer to a specific commit.
- annotated tag: are stored as full objects in the Git database. (recommended)
Lightweight tags
Annotated tags
They’re checksummed; contain the tagger name, email, and date; have a tagging message; and can be signed and verified with GNU Privacy Guard (GPG).
That shows:
- the tagger information
- the date the commit was tagged
- the annotation message before showing the commit information.
git tag -a v1.2 9fceb02
git push origin --tags
pushes all tagsgit push origin v1.5
pushes a specific tag