Created
April 28, 2016 21:29
-
-
Save Trindaz/d809b9c9db438d0292ec9b3bc64dca24 to your computer and use it in GitHub Desktop.
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
for k in $(git branch | sed /\*/d); do | |
if [ -n "$(git log -1 --before='1 month ago' -s $k)" ]; then | |
git branch -D $k | |
git push origin --delete $k | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment