Last active
May 24, 2016 15:02
-
-
Save DanCech/e1b8cf7d0be5843c6065 to your computer and use it in GitHub Desktop.
Git branch cleanup script
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 remote prune origin | |
git branch --merged | grep -v master | grep -v '[*]' | xargs -r git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment