在分支机构中搜索

列出包含特定提交或标记的本地分支

git branch --contains <commit>

列出包含特定提交或标记的本地和远程分支

git branch -a --contains <commit>