git tag
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 選項(xiàng) 建立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
轉(zhuǎn)載于:https://www.cnblogs.com/Eastsong/p/4993182.html
總結(jié)
- 上一篇: 根据 xsd 生成 jaxb java
- 下一篇: 电子排布