Last active
May 23, 2017 16:58
-
-
Save locriani/f24890a03ea20e83044c 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
git remote prune origin | |
git fetch -p origin | |
git branch --merged | | |
grep -v \"\*\" | | |
grep -v master | | |
xargs -n 1 git branch -d |
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
git remote prune origin | |
git branch -r --merged origin/master | | |
grep origin | | |
grep -v '>' | | |
grep -v master | | |
grep -v preproduction | | |
grep -v production | | |
grep -v dev | | |
grep -v qa | | |
xargs -L1 | | |
awk '{sub(/origin\//,"");print "- "$0}' | | |
tee .goodbye | | |
cat |
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
cat .goodbye | | |
xargs -L1 | | |
awk '{sub(/\- /,"");print $0}' | | |
xargs git push origin --delete | |
rm .goodbye |
Author
locriani
commented
May 23, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment