Here is handy little git command to find merged or unmerged branches.
The command is as follows
git branch <whereToLook> --merged <branch>Where to look can be :
- -l locally (default)
- -r remotely
- -a both
- The branch to check. The default is your current branch.
git branch -a --merged
To find unmerged branches remotely and locally)
git branch -a --no-mergedTo find unmerged branches we append the merged command with no
If you don't specify a branch it will default to your current branch.