Last active
December 27, 2017 21:20
-
-
Save ssoper/8f4b8231e4138d21e9ec73915dcd07ea to your computer and use it in GitHub Desktop.
Remove merged git 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
#!/usr/bin/env bash | |
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment