Created
February 12, 2016 07:09
-
-
Save ma3tk/20354ae3bbbf96529ca9 to your computer and use it in GitHub Desktop.
Delete "Merged branches in Remote" with fetch
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 fetch --prune; git branch -a --merged | grep -vE '^\*|master$|develop$|release$' | grep remotes/origin | sed -e 's% *remotes/origin/%%' | xargs -I% git push origin :% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment