List tags
git tag# pattern match git tag -l "v1.8.5*" |
Creating an annotated tag
git tag -a v1.4 -m "my version 1.4" |
Creating lightweight tags
To create a lightweight tag, don’t supply the -a, -s, or -m option:
git tag v1.4-lw |
Sharing Tags
git push origin v1.5 |
Checking out Tags
syntax: git checkout -b [branchname] [tagname]
git checkout -b new-branch-name v2.0.0 |
or using this syntax: git checkout [tagname] -b [branchname]
git checkout v2.0.0 -b new-branch-name |