Created
November 7, 2012 18:12
-
-
Save heatherm/4033326 to your computer and use it in GitHub Desktop.
clean remote branches that have been merged
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
git branch -r --merged develop | sed 's/ *origin\///' | grep -v 'master$' | xargs -n 1 printf "git push origin :%s\n" | bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment