Created
April 21, 2016 11:23
-
-
Save vojtatranta/7512f625321e85ff92b260a41d908984 to your computer and use it in GitHub Desktop.
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 | |
# | |
# Task delete merged local and remote branches | |
# | |
EXCLUDE="master|next|release" | |
# local | |
git branch --merged remotes/origin/next | grep -v -E "$EXCLUDE" | xargs -n 1 git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment