Jie Ma bio photo

Jie Ma

web developer, freelance photographer

Twitter LinkedIn Instagram Github Weibo Flickr

List no merged branches on git

We are using git-flow as git branching model to do development.

However, there are more and more feautre branches were generated, and we need to make a list quickly for all branches to see which branch is still under development and not merged into master branch sometimes.

Then this command will give a huge help.

git branch –no-merged master

And if add -a you can get all include remote branches.