![](/img/trans.png)
[英]Git commit to multiple branches, how do I find which branches the commit went to?
[英]Git: How to find which branches a commit was merged into?
給定一組更改的Git提交ID,如何找到此提交合並到哪些分支?
如果提交已成為該分支歷史記錄(提交列表)的一部分,則它已合並到分支中。 所以應該這樣做:
git branch --contains <commit>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.