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/sh | |
for branch in $(git branch -a | sed 's/^\s*//' | sed 's/^remotes\///' | grep -v 'master$\|develop$'); do | |
if ! ( [[ -f "$branch" ]] || [[ -d "$branch" ]] ) && [[ "$(git log $branch --since "2 month ago" | wc -l)" -eq 0 ]]; then | |
name=$(echo "$branch" | sed 's/remotes\/origin\///') | |
git push origin --delete "${name}" | |
fi | |
done |
I hereby claim:
- I am reistiago on github.
- I am reistiago (https://keybase.io/reistiago) on keybase.
- I have a public key whose fingerprint is 8C5E E26E 0328 4D54 7D2F 1FC5 87FF A0F8 1264 07D4
To claim this, I am signing this object: