Created
February 8, 2016 20:14
-
-
Save kblok/93e83c9b7dc217c418d9 to your computer and use it in GitHub Desktop.
Check for merged remote branches
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
| #!/bin/bash | |
| git fetch origin | |
| git checkout develop | |
| git pull upstream develop | |
| git branch -r --merged develop | grep -v "origin/master$" | grep -v "origin/develop$" | grep "origin/*" | sed 's/\s*origin\///' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment