Skip to content

Instantly share code, notes, and snippets.

@rel
Created January 31, 2013 00:23
Show Gist options
  • Save rel/4678729 to your computer and use it in GitHub Desktop.
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.
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