简体   繁体   English

如何获取合并到合并中的 git 分支的名称

[英]How to get the names of git branches which were merged into a merge

We develop feature branches which we merge to master and delete.我们开发合并到主控和删除的功能分支。 Then we merge master to a branch named "release".然后我们将master合并到一个名为“release”的分支。

Having checked out the release branch head, I need to see the names of all the branches that were merged to master and deleted.签出发布分支头后,我需要查看合并到 master 和删除的所有分支的名称。

I try the following but it only gives me the names of the branches that still exist.我尝试以下方法,但它只给了我仍然存在的分支的名称。

git branch --list -a --merged

The default commit message in a merge includes the names of both the merged branch and the target branch.合并中的默认提交消息包括合并分支和目标分支的名称。 Have you checked there?你在那里查过吗?

Something like Merge branch 'feature1' into develop .Merge branch 'feature1' into develop 之类的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM