Tags


Tags are used to mark certain commits. Usually used for versioning. By default, these are not pushed when you run git push. To push a specific tag, run git push <remote> <tag-name>. To push all tags, run git push --tags.

Lightweight tags

These are basically just a pointer to a commit. They store a commit checksum.

Annotated tags

These are full objects in Git. They contain a checksum, tagger name/email, date, message, and can be tagged with GNU Privacy Guard GPG. These are the recommended tags to use most of the time.

Commands