43 / 57 · 17 Git & Version Control · Tagging and Releases← prev⊞ allnext →☰ Read as one page
6.3Working with Tags
# List all tags
git tag
# List tags matching a pattern
git tag -l "v2.4.*"
# Show tag details (annotated tags include the message)
git show v2.4.0
# Push a specific tag to remote
git push origin v2.4.0
# Push all tags
git push origin --tags
# Delete a local tag
git tag -d v2.4.0-rc1
# Delete a remote tag
git push origin --delete v2.4.0-rc1
# Checkout a specific tag (detached HEAD state)
git checkout v2.4.0
# Create a branch from a tag (for hotfixes)
git checkout -b hotfix/2.4.1 v2.4.0