dluoew
Last Updated: February 25, 2016
·
3.861K
· filipekiss
1900150 10203074354438338 1015529188 n

See no merged branches on git

So you're working on your project and want to see which features were not yet merged into the master branch. Do not fear, just checkout to master and run the following command:

git branch --no-merged master

And voilá! You'll have a list of which branches were not yet merged into your master. You can even create an alias:

git config --global alias.nm "branch --no-merged"

and then just run

git nm master

Hope it helps you :)

Say Thanks
Respond

3 Responses
Add your response

2541
8c65bdab337b8aa043bd470d3cbf3531

Why do you need to check out master, and then specify master as the reference branch for --no-merged?

over 1 year ago ·
2603
1900150 10203074354438338 1015529188 n

@mabraham But I didn't checkout master... I just passed it as reference directly. But you can just call git branch --no-merged to use the current branch as reference without a problem :)

over 1 year ago ·
2604
8c65bdab337b8aa043bd470d3cbf3531

The text of your tip says to check out master first... :-)

over 1 year ago ·
Filed Under