码迷,mamicode.com
首页 > 其他好文 > 详细

Git Note - git tag

时间:2014-07-10 14:29:01      阅读:213      评论:0      收藏:0      [点我收藏+]

标签:for   io   amp   re   c   server   

git tag is used to create labels, usually for version numbers.
Format: git tag <TagName> <refer>
Example:

git tag v0.1 HEAD

is to create a version number v0.1 on current HEAD.

Notice:
When you git push your code to remote server, you need to add --tags option.

git push --tags

Delete local tags

git tag -d v1.0

Delete remote tags

git push origin :/refs/tags/v1.0

Git Note - git tag,布布扣,bubuko.com

Git Note - git tag

标签:for   io   amp   re   c   server   

原文地址:http://www.cnblogs.com/craftor/p/3811572.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!