Git Cheat Sheet/Create annotated tag

Create a release tag with metadata.

Section: Tags and Releases

Create annotated tag

bash
bash
git tag -a v1.2.0 -m "Release v1.2.0"

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Tags and Releases
List tags
Show local tags.
OpenIn sheetbashsame section
Create signed tag
Sign a release tag with GPG.
OpenIn sheetbashsame section
Show tag details
Inspect tag target and metadata.
OpenIn sheetbashsame section
Push one tag
Publish a tag.
OpenIn sheetbashsame section
Push all tags
Publish all local tags.
OpenIn sheetbashsame section
Delete local tag
Remove a local tag.
OpenIn sheetbashsame section