Table of Contents

Create a Tag

# Lightweight Tag
git tag <tagname>

# With message
git tag -a <tagname> -m "Tag message"

# With specific commit
git tag <tagname> <commit>

Push Tag to Remote

# Push single tag
git push <remote> <tagname>

# Push all tags
git push <remote> --tags

View Tags

# List all tags
git tag

# Show tag details
git show <tagname>