Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
给定一组更改的 Git 提交 ID,我如何找到该提交合并到哪些分支?
如果提交是分支历史记录(提交列表)的一部分,则提交已合并到分支中。所以应该这样做:
git branch --contains <commit>