Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Tags

CREATE

Create lightweight tag

git tag <tag_name> <SHA>

Create annotated tag

git tag -am "message" <tag_name> <SHA>

Create a remote tag when local exists

git push origin <tag_name>

Push all local tags to remote

git push origin --tags

VIEW

View tag info

git show <tag_name>

View tags list

git tag -l

View tags list by pattern

git tag -l "pattern"

View tags list with first line of each annotation

git tag -n

DELETE

Delete local tag

git tag -d <tag_name>

Delete remote tag

git tag -d origin <tag_name>