Inhaltsverzeichnis

'git' Tags

List All Existing Tags With Type

List all existing tags with type, annotated or lighweight:

git for-each-ref refs/tags


Or to check the type of a single tag tagname:

git cat-file -t tagname


If the reported type is tag, it's an annotated tag, i.e. a git object incuding the tagger and a tag message.

If the reported type is commit, it's lightweight, i.e. just a pointer to the specified commit.


Synchronize Tags With a Remote

Force-synchronize tags from a remote, even if a local tag with the same tag name already exists:

git fetch origin --tags --force

Martin Burnicki martin.burnicki@burnicki.net, last updated 2022-08-10