【发布时间】:2016-10-05 00:41:23
【问题描述】:
对于给定的提交,是否可以确定提交后最近的标签?我不知道如何使用 git describe 或 git log 做到这一点?
示例: 我们标记所有版本。我想生成描述提交进入哪个版本的发行说明。我可以获得最新的标签,但这仅显示它之前的版本。我想知道它之后是哪个版本
【问题讨论】:
-
git-describe 手册页字面意思是
--contains: Instead of finding the tag that predates the commit, find the tag that comes after the commit, and thus contains it....
标签: git