Created
January 16, 2013 13:37
-
-
Save billmoritz/4547198 to your computer and use it in GitHub Desktop.
Deletes remote branches from origin that have been merged in to origin/master
This file contains 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
git branch -r --merged origin/master | | |
grep origin | egrep -v '>|master' | | |
awk '{sub(/origin\//,"");print}' | | |
xargs git push origin --delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment