Created
November 29, 2013 12:38
-
-
Save schnell18/7705133 to your computer and use it in GitHub Desktop.
Find all branches not yet merged into current branch. It is equivalent of git branch --no-merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for t in $(git for-each-ref --format="%(refname)") | |
do | |
c=$(git rev-list HEAD..$t) | |
if [[ ! -z $c ]]; then | |
echo $t | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment