Created
April 5, 2018 10:43
-
-
Save jetsuit/5b710d2b8af2e600c3387b7833cc657f to your computer and use it in GitHub Desktop.
Delete all local branches, merged already (exclude staging, master, dev)
This file contains hidden or 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 --merged | grep -v "\*" | grep -v "staging|master|dev" | xargs -n 1 git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
git branch | grep -v "master|dev|staging" | xargs git branch -D