Created
June 1, 2016 03:17
-
-
Save askeing/4fd085e0349735522b45c438b57ced91 to your computer and use it in GitHub Desktop.
Remove all merged remote branches
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 master | sed 's/ *origin\///' | grep -v 'master$' | xargs git push origin --delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment