how can I check whether a branch has been merged into another branch?

In command line, how can I check whether a branch has been merged into another branch, and if yes, find out which branch it has been merged into?

Thanks.


git branch --contains <branch>

将打印由<branch>标记的提交是祖先的所有本地分支。


if your do something like

git checkout a
git merge b

you will merge b into a

when your merge you are creating a merge commit so you should be able to see the commit in

 git log

You can use gitg for this. See also visual editor.

链接地址: http://www.djcxy.com/p/26054.html

上一篇: 我如何列出作为提交祖先的所有分支?

下一篇: 我如何检查一个分支是否被合并到另一个分支?