A Git tag labels and marks a specific commit in the history. Tags are commonly used to indicate release versions, with the release name (i.e., v1.0) being the tag's name.
There are two types of Git tags:
- Lightweight tags
- Annotated tags
A lightweight tag is similar to a branch that does not change. It just points directly to a specific commit in the history. Lightweight tags are mainly used temporarily in your local workspace.
An annotated tag is checksummed and often used when planning to mark an important commit. You can add a message, signature, date, and the tagger’s name and email.