Skip to content

Instantly share code, notes, and snippets.

@brianstorti
Created January 15, 2013 12:34
Show Gist options
  • Save brianstorti/4538321 to your computer and use it in GitHub Desktop.
Save brianstorti/4538321 to your computer and use it in GitHub Desktop.
Remove all remote branches that are already merged on master
git branch -r --merged master | ack -v master | sed -e 's/\// :/g' | xargs -n2 git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment