spring clean your git repos!
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
|# remove any bad refs|
|git remote prune origin|
|# pipe into bash and auto-delete any branches that have been merged into master!|
|git log master --pretty=format:'%d' | grep '^ (origin' | tr -d ' ()' | sed 's/origin\//git push origin :/'|