git annotated tag code example
Example 1: git create tag and push
git tag -a v1.4 -m "my version 1.4"
Example 2: git add tag
git tag -a v1.2
git push origin v1.2
Example 3: git see tags
$ git tag -l -n2
Example 4: git tag from commit
$ git tag <tag_name> HEAD (for the last commit)
Example 5: search tag git
$ git tag -l "v1.8.5*"
v1.8.5
v1.8.5-rc0
v1.8.5-rc1
v1.8.5-rc2
v1.8.5-rc3
v1.8.5.1
v1.8.5.2
v1.8.5.3
v1.8.5.4
v1.8.5.5