Created
July 26, 2016 10:47
-
-
Save mick88/655284e9a25b8c2507ef73dbe6932604 to your computer and use it in GitHub Desktop.
Remove merged branches excluding master
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 branch --merged | grep -v "\*" | grep -v master | xargs -n 1 git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment