git tag last
git describe --abbrev=0
git tag a previous commit
git tag -a v1.2 9fceb02 -m "Message here"
git tag from commit
$ git tag <tag_name> HEAD (for the last commit)
git tag documentation
git tag [-a | -s | -u <keyid>] [-f] [-m <msg> | -F <file>] [-e]
<tagname> [<commit> | <object>]
git tag -d <tagname>…
git tag [-n[<num>]] -l [--contains <commit>] [--no-contains <commit>]
[--points-at <object>] [--column[=<options>] | --no-column]
[--create-reflog] [--sort=<key>] [--format=<format>]
[--merged <commit>] [--no-merged <commit>] [<pattern>…]
git tag -v [--format=<format>] <tagname>…
git tag
#CREATE tag whit message:
$ git tag -a v1.4 -m "my version 1.4 annotation: tags last commit"
#PUSH tag:
#from git 1.8.3 you can use
git push --follow-tags
#single tag push
git push origin <tag_name>
#All tags (if possible use --follow-tags 'cause it's safer)
git push --tags
#DELETE TAG:
# locally
git tag -d tagName
# remote tag
git tag -d tagName
git push origin :tagName
#Check tags:
git tag
#Check single tag details:
git show <tag_name>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us