Created
June 4, 2014 14:52
-
-
Save davejlong/50afa29ce7b1fca372e3 to your computer and use it in GitHub Desktop.
Remove all feature and hotfix branches from local repo
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 -l` | |
.split("\n").map { |branch| branch.strip } | |
.select { |branch| branch[/(feature|hotfix)\//] } | |
.each { |branch| `git branch -d #{branch}` } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment