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

git tags 管理

时间:2017-09-15 13:56:37      阅读:125      评论:0      收藏:0      [点我收藏+]

标签:特定   git   tag   git tag   本地   push   commit   新建   mit   

  1. 新建标签: git tag -a V1.1 -m "some thing" (新建标签前请先commit代码)
  2. 推送标签: git push --tags (推送标签前请先推送代码)
  3. 删除本地标签: git tag -d V1.1
  4. 删除远程标签: git push origin :refs/tags/V1.1
  5. 查看标签: git tag -l (会列出一个列表)
  6. 查看标签详情: git show v0.1.1 (查看特定标签的详情)

git tags 管理

标签:特定   git   tag   git tag   本地   push   commit   新建   mit   

原文地址:http://www.cnblogs.com/qufanblog/p/7525525.html

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