Last active
March 17, 2017 02:23
-
-
Save yuchan/022ff418aed47814800686690ee4e9f6 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
git fetch origin --prune | |
for branch in $(git branch -r --list --merged | grep -v "develop" | grep -v "master" | sed -e 's/[A-z]*\///'); do git push origin :${branch}; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment