如何列出包含给定提交的分支?
问题: How can I query git to find out which branches contain a given commit? 如何查询git以找出包含给定提交的分支? gitk will usually list the branches, unless there are too many, in which case it just says "many (38)" or something like that. gitk 通常会列出分支,除非有太多分支,在这种情况下,它只会显示“许多(38)”或类似内容。 I need to know the full list, or at least whether certain branches contain the commit. 我需要知道完整列表,或者至少要知道某些分支是否包含提交。 解决方案: 参考一: https://stackoom.com/question/5xJ9/如何列出包含给定提交的分支 参考二: https://oldbug.net/q/5xJ9/How-to-list-branches-that-contain-a-given-commit 来源: oschina 链接: https://my.oschina.net/u/4428122/blog/4314147