Git Tags


A tag is a named pointer to a specific commit. Unlike a branch, it doesn’t move — once created, it always refers to the same point in history. Tags are most commonly used to mark releases, but they work for any commit you want to reference by name.

Create a tag

git tag v2.12.07

The tag can then be used anywhere a commit reference is accepted:

git checkout v2.12.07

Delete a tag locally

git tag -d v2.12.07

List all local tags

git tag

Push tags to remote

Tags are not pushed automatically with git push. To push all local tags:

git push --tags

Remove a tag from remote

git push --delete v2.12.07