[英]How can I get all git branches that were merged in a branch from the last matching commit message
I want to get all branches that were merged in my master branch that since a commit for which I know the commit message.我想获取所有合并到我的主分支中的分支,因为我知道提交消息的提交。 How can accomplish that?
怎么能做到这一点?
Starting from basics: branch is reference to head commit of this branch.从基础开始:分支是对该分支的头部提交的引用。 Branch have no history, history of yours branch in git-log is generated based on commit parent field.
分支没有历史记录,您的分支在 git-log 中的历史记录是基于提交父字段生成的。 Merge commits have references to theirs parents only by checksum, so if you hadn't wrote branch names in commit message there is no possibility to check which branches was merged.
合并提交仅通过校验和对其父项进行引用,因此如果您没有在提交消息中写入分支名称,则无法检查合并了哪些分支。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.