我想要一个特定分支的标签列表。以下是我所拥有的分支机构。
$ git branch
master
git tag命令给出所有分支的标签列表。
我需要的格式是master_release分支的标签列表
Tdja
TAG2
TAG1
其中tag3是最新的分支
我认为这将是git tag --list --merged
。
Docs say:
--merged [<commit>]
仅列出其提交可从指定提交到达的标记(如果未指定,则为HEAD),与--no-merged不兼容。
在How to list all tags within a certain git branch解释的还有一种更为复杂的方式