本文介绍了Git标记另一个标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将标签放置在另一个标签的相同引用上?例如,我想将标签"Stable_Build"放在某个版本"1.0.0.1"的标签上.
How can I put a tag on same references of another tag?For example I would like to put tag "Stable_Build" on a tag of a certain release "1.0.0.1".
是否有更好,更快的方法来做到这一点,除了:
Is there a better\faster way to do it except to:
git checkout 1.0.0.1
git tag -a Stable_Build
推荐答案
与git new_tag old_tag
$ git tag stable 1.0.0
$ git tag --list
1.0.0
stable
顺便说一句:它不会引用标记1.0.0,而是与标记1.0.0相同的提交.
By the way: it would not refer to tag 1.0.0 but to same commit as tag 1.0.0.
这篇关于Git标记另一个标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!