Last active
January 27, 2022 00:13
-
-
Save marco-carvalho/694fa8f98d2b1c93fa715eafd5463261 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
for k in $(git branch --sort=committerdate --remote | grep -o -P "(?<=origin\/)[^ ]+"); do | |
if [[ ! $(git log -1 --since='6 month ago' -s origin/$k) ]]; then | |
git push origin -d $k; | |
fi; | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment