1 list all the tags
git tag
2 search tag for a particular pattern
git tag -l 'v1.8.5*'
3 create tag
1)lightweight tag -- pointer to a commit
git tag v1.4-lw
2)annotated tag -- store as objects: tagger name, email,date, message
-a 选项 建立annotated tag
git tag -a v1.4 -m 'my version 1.4'
4 tagging later
git tag -a tag名称 commit
git tag -a v1.2 9fceb02
5 sharing tag
git push origin v1.5
git push origin --tags
6 checking out tag
git checkout -b [branchname] [tagname]
git checkout -b version2 v2.0.0