Created
January 31, 2013 00:23
-
-
Save rel/4678729 to your computer and use it in GitHub Desktop.
A quick and dirty bash command to delete remote branches that have been merged into develop.
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 branch -a --merged origin/develop | grep -v ^* | grep -v master | grep -v develop | sed s/remotes.origin.// | xargs -i{} git push origin :{} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment