Created
October 13, 2020 10:46
-
-
Save evzpav/d3a18ada3caf5b097e4dfa50617e3354 to your computer and use it in GitHub Desktop.
Delete stale 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
#!/bin/bash | |
# Delete all local branches that are no "master" neither "develop" | |
git branch -D `git branch | grep -vE 'master|develop'` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment