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

git之tag

时间:2016-06-30 18:14:51      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:

参考:git命令之git tag 给当前分支打标签

 

1、git tag //查看已有标签

2、git tag v0.1.2  //创建标签

   git tag -a v0.1.2 -m “0.1.2版本”   // 创建附注标签

3、git tag -d v0.1.2 // 删除标签

4、git push origin v0.1.2 // 将v0.1.2标签提交到git服务器

     git push origin –tags // 将本地所有标签一次性提交到git服务器

5、git tag -l ‘*v0.1.*’ // 搜索符合模式的标签

6、git show v0.1.2  //查看标签的版本信息

  注:q退出git show
    

git之tag

标签:

原文地址:http://www.cnblogs.com/sunjf/p/git_tag.html

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