Git Tags

Last modified: 
Thursday, April 9th, 2015
Topics: 
Git

Working With Tags in Git

Create a Light Weight Tag

git tag [tagname]

Create an Annotated Tag

git tag -a [tagname] -m "Commit message here."

Delete a Tag

git tag -d [tagname]

Pushing Tags to a Remote Git Repository

You must explicitly push tags to a remote repository.

# Push a single tag to a remote repository
git push origin [tagname]
# Push all tags to a remote repository
git push origin --tags

Checkout out tag as a branch

git checkout -b [tagname] [tagname]


The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.