简体   繁体   English

如何查看Github上的哪些分支或标签包含特定的提交?

[英]How can I see which branches or tags on Github include a specific commit?

I've just hit a bug in a project on Github. 我刚刚在Github的一个项目中遇到了一个错误。 I found an issue listed for the bug, and it lists a commit that supposedly fixes the problem. 我发现了一个针对该bug列出的问题,它列出了一个可以解决问题的提交。

How can I see which branches or tags, if any, include the commit that fixed the bug? 如何查看哪些分支或标记(如果有)包含修复错误的提交? I'd like to do this on Github, if possible, but a pure git solution would be OK, too. 如果可能的话,我想在Github上做这个,但纯粹的git解决方案也可以。

除了Charles B发布的链接(解释了如何查找分支)之外,您还可以使用git tag --contains作为查找包含提交的标记的等效命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM