Skip to content

Instantly share code, notes, and snippets.

@heatherm
Created November 7, 2012 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heatherm/4033326 to your computer and use it in GitHub Desktop.
Save heatherm/4033326 to your computer and use it in GitHub Desktop.
clean remote branches that have been merged
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