Last active
February 5, 2016 00:16
-
-
Save melizeche/2189a05a90f4dfe629fe to your computer and use it in GitHub Desktop.
Remove all git branches except 'master'
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
git for-each-ref --format '%(refname:short)' | grep -v master | sed 's/^origin\///' | sed 's/^/ git push origin :/' | bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment