Back

git tag 基本操作 ( git tagging basic )

发布时间: 2013-03-14 09:50:00

$ git tag -l  查看所有的tag 

$ git tag -a 1.1.0 a50fabb -m 'message content .... '

$ git tag -d 1.0   # will remove tag 1.0

$ git tag -n2   # will show the tags with their messages. 

1.0.0           CMS 3.0 的抢先版,....
1.0.1           3月14日下午.修改了若干BUG(大部分都是表单验证)...

$ git push --tags  # push local tags to remote server

$ git ls-remote --tags # list all the remote tags

From ssh://....
a70cffc64e73ae4b5ab7329480999305f11d9c76	refs/tags/1.0.0
6d1ad6c601652442d6d32fce5233ba50a1dd9f56	refs/tags/1.0.0^{}
1acf5e9aabbd353ff45b7aa3fe319d3822acad19	refs/tags/1.0.1
5bba7a637e64267ffad38dd48c30df00da6cc91e	refs/tags/1.0.1^{}

Back