- git查看tag的命令是:git tag
- 创建Tag 是直接加名字就ok了,格式: git tag 名字 –m "注释"
3.git push origin tag名
AlexdeMacBook-Air:DDAlertView alex$ git tag v1.0.1
AlexdeMacBook-Air:DDAlertView alex$ git push origin v1.0.1
Total 0 (delta 0), reused 0 (delta 0)
To https://github.com/destinyzhao/DDAlertView.git
- [new tag] v1.0.1 -> v1.0.1
AlexdeMacBook-Air:DDAlertView alex$ git tag
0.0.1
1.0.0
v1.0.1