git tag -a <version_number> -m <message>

Create an annotated tag with a specific version number and message

This command allows you to create an annotated tag in git, specifying a and a . Annotated tags store additional metadata such as the tagger's name, email, and the date. This can be useful for documenting important releases or milestones in your project.

To create an annotated tag, use the git tag -a command followed by the and the -m flag to specify the . For example, git tag -a v1.0 -m 'First release'.

You can also provide additional information such as the tagger's name and email using the --annotate (or -a for short) flag followed by the -s flag for signing the tag with a GPG key. For example, git tag --annotate -s v1.0 -m 'First release'.

Additionally, you can use the -F <file> flag to specify a file containing the tag message instead of providing it directly on the command line.

Sign in to enable bookmarking, reminders, progress-tracking and more...