Last active
October 3, 2018 07:31
-
-
Save rogerwalt/284daf57f9578646d9646580d2a41e66 to your computer and use it in GitHub Desktop.
Cleans stale git branches (removed on remote and merged local branches)
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 remote prune origin | |
git branch --merged | egrep -v "(^\*|master|dev)" | xargs -r git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment