top of page
fondo banner oscuro

Tech Glossary

Git Tag

Git Tag is a feature in Git used to label specific points in a repository’s history, usually to mark important milestones like software releases. Tags serve as immutable references to a specific commit, making them ideal for versioning and organizing a project’s history.

Types of Git Tags:
1. Lightweight Tags: Simple pointers to a commit without additional metadata.
2. Annotated Tags: Store metadata, such as the tagger’s name, email, date, and an optional message.

Creating and Managing Tags:
- Creating a Tag: Tags can be created using commands like git tag v1.0.0 for lightweight tags or git tag -a v1.0.0 -m "Release 1.0" for annotated tags.
- Pushing Tags: Tags must be explicitly pushed to a remote repository using git push origin <tagname>.
- Viewing Tags: Use git tag to list all tags in a repository.

Use Cases:
- Marking stable releases for deployment.
- Identifying key development checkpoints.
- Archiving historical points for rollback or reference.

Git tags are essential for version control workflows, ensuring developers can easily track and retrieve specific commits. They provide clarity in project timelines and enhance collaboration.

bottom of page