Git tags are specialized pointers in the Git version control system that serve as immutable references to specific commits. Unlike branches, which are designed to move as new commits are added, tags provide stable markers for important points in a project's history.
- Lightweight Tags
- Simple pointers to specific commits
- Contains only commit reference information
- Created without additional metadata
- Annotated Tags
- Full Git objects containing metadata
- Includes tagger name, email, date, and message
- Recommended for releases and significant milestones