Created
September 1, 2015 13:07
-
-
Save AaronO/12af921e9d12931f5660 to your computer and use it in GitHub Desktop.
A small utility script that remove merged branches it ignores current branch, master and gh-pages for security
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/sh | |
git branch --merged | grep -v "*" | grep -v master | grep -v gh-pages | xargs git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment