Created
July 28, 2015 21:59
-
-
Save wsantos/ef0f3ab3a5dabbfbc2ff to your computer and use it in GitHub Desktop.
delete merged branches - remote
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 | ⏎ ✭ ✱ ◼ | |
awk -F'/' '/^ *origin/{if(!match($0, /(>|master)/)){print $2}}' | | |
xargs git push origin --delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment