首页 > 其他 > 详细

为Git branch 打Tag

时间:2020-09-03 17:34:20      阅读:65      评论:0      收藏:0      [点我收藏+]

tag is a pointer to a commit, and commits exist independently of branches.

 

Branches come into play only indirectly:

  • At the time of creating a tag, by implying the commit that the tag will point to:
    • Not specifying a target for a tag defaults to the current branch‘s most recent commit (a.k.a. HEAD); e.g.:
      • git tag v0.1.0 # tags HEAD of *current* branch
    • Specifying a branch name as the tag target defaults to that branch‘s most recent commit; e.g.:
      • git tag v0.1.0 develop # tags HEAD of ‘develop‘ branch
    • (As others have noted, you can also specify a commit ID explicitly as the tag‘s target.)

 

为Git branch 打Tag

原文:https://www.cnblogs.com/divl/p/13608739.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!