Command

Git Create Tag Command

The Git command to create tag is git tag -a <name> -m "message".

Quick Answer

Command
git tag -a <name> -m "message"
GitCommand

Create Tag

Type this command
git tag -a <name> -m "message"

Creates an annotated tag at the current commit.

Learn More

How to create tag in Git

  1. Open the terminal or command interface for Git.
  2. Type git tag -a <name> -m "message", replace any placeholders, and run it.

Git Create Tag Command

Run git tag -a <name> -m "message".

Related Commands

Frequently asked questions

What is the Git command to create tag?

Run git tag -a <name> -m "message".

Where do I type this Git command?

Type it in the terminal or command-line interface used by Git.

Does this Git command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify