简体   繁体   English

如何从最后一个匹配的提交消息中获取合并到分支中的所有 git 分支

[英]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.

相关问题 如何获取 git 中最后合并的分支名称 - How can I get the last merged branch name in git Git:如何列出从特定分支创建的所有分支? - Git: How to list all branches that were created from a specific branch? 当从git存储列表合并时,如何删除或清除孤立的“未跟踪文件”提交分支合并到目标分支? - How do I remove or cleanup orphan “untracked file” commit branches merged into target branch when merging from a git stash list? git 命令 - 从最新的最后 8 个合并提交中获取所有文件,不包括带有消息“仅提交 Delta Changes [ci skip]”的提交 - git command- get all the files from latest last 8 merged commits excluding a commit with message “Commit only Delta Changes [ci skip]” Git:如何找到所有从未合并回master的分支 - Git: How to find all branches that were never merged back into master Git:如何防止特定提交合并到另一个分支? - Git: How can I prevent a specific commit from being merged into another branch? 我如何从git压缩的提交中获取最后的提交 - How can i get the last commit from squashed commit in git 如何获取合并到合并中的 git 分支的名称 - How to get the names of git branches which were merged into a merge 如何在Git中编辑合并提交的消息? - How can I edit the message of a merged commit in Git? 如何获取所有 git 提交到合并分支的列表? - How do I get a list of all git commits to a merged branch?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM