git tag

Create tags for specific commits, typically used to mark release versions

Syntax

git tag [<options>] [<tagname>] [<commit>]

Parameters

ParametersDescriptionExamplesLevel
-a (, ) Common
-m <message> Common
-d Common
-l <pattern> Common
-f Common

Examples

git tag v1.0.0

Description

git tag -a v1.0.0 -m " 1.0.0 "

git tag -a v0.9.0 abc1234

v1

git tag -l "v1.*"
v1.0.0 v1.0.1 v1.1.0

git push origin v1.0.0

git push origin --tags

git tag -d v1.0.0

Tips

Related Commands