Skip to content

    Git tag

    Reading time: 2 min.Editorially reviewed on:

    Definition

    A Git tag gives a specific project state a recognizable name, for example for a version.

    A Git tag is a named reference to a Git object, usually a commit. Lightweight tags essentially consist of this reference. Annotated tags include additional information such as message, authorship, and date and can be cryptographically signed.

    Simply explained

    You attach a name label to a version state so that it can be clearly found later.

    Why it matters in practice

    Tags facilitate the assignment of releases, documentation, and delivery states to a specific version of the source project.

    Example from business

    Possible example: After completed tests, a team marks the used commit with a version name and assigns the release notes to it.

    Limits and pitfalls

    • A tag neither proves successful tests nor a release. Names must be coordinated; moving a shared tag afterward can cause confusion.

    Origin & history

    Tags complement movable branch pointers with deliberately named states. Annotated tags extend this marking with their own metadata and possible signatures.

    Use in mid-sized companies

    • An operation defines its version names and links important tags with the associated test results and actually delivered artifacts.

    Frequently asked questions

    Is a tag the same as a branch?

    No. A branch moves forward as work continues; a tag is intended for the targeted marking of a specific state.

    Sources

    • git-tag. · Git-Projekt (o. J.): git-tag.

    Editorially reviewed on:

    On this page

    Next step

    Put knowledge into practice