git-tag
Create, list, and manage tags
TLDR
List tags
$ git tag
Create lightweight tagcopy
$ git tag [name]
Create annotated tagcopy
$ git tag -a [name] -m "[message]"
Create signed tagcopy
$ git tag -s [name] -m "[message]"
Tag specific commitcopy
$ git tag [name] [commit]
Delete tagcopy
$ git tag -d [name]
Push tag to remotecopy
$ git push origin [name]
List tags matching patterncopy
$ git tag -l "[v1.*]"
copy
SYNOPSIS
git tag [options] [name] [commit]
DESCRIPTION
git tag creates, lists, deletes, and verifies tag objects. Tags mark specific points in history as important, typically used for release versions.Lightweight tags are simple pointers to a commit, while annotated tags store extra metadata such as the tagger name, date, and a message. Signed tags add a GPG signature for verification.
PARAMETERS
-a, --annotate
Create annotated tag.-m, --message msg
Tag message.-s, --sign
Create signed tag.-d, --delete
Delete tag.-f, --force
Force replace tag.-l, --list pattern
List matching tags.-n num
Show lines of annotation.--contains commit
Tags containing commit.--sort key
Sort tags.
SEE ALSO
git-branch(1), git-commit(1)