找到提交进入的第一个版本(=标签)

Find the first release(s) (=tags) the commit has gone into

一旦我在 git 存储库中找到了一些特定的提交(例如修复了一些错误或引入了一些功能的提交),我自然会对我可以在哪些版本中找到它感兴趣。

我考虑的事情:

在 GitHub and/or TortoiseGit UI 中展示如何做到这一点,如果可能的话,将是一个加号 (如果您认为这值得单独发表评论问题).

在 git CLI 上执行 git tag --contains <sha1>

转到 TortoiseGit 日志。右键单击提交和 select "Show branches this commit is on"(需要 TortoiseGit > 2.3 才能看到标签,输入 "tags" 进行过滤才能只看到标签)。