Skip to content

Instantly share code, notes, and snippets.

@askeing
Created June 1, 2016 03:17
Show Gist options
  • Save askeing/4fd085e0349735522b45c438b57ced91 to your computer and use it in GitHub Desktop.
Save askeing/4fd085e0349735522b45c438b57ced91 to your computer and use it in GitHub Desktop.
Remove all merged remote branches
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