Skip to content

Instantly share code, notes, and snippets.

@jorke
Created October 20, 2016 14:00
Show Gist options
  • Save jorke/e481815f012d04badb1ce5fb41464214 to your computer and use it in GitHub Desktop.
Save jorke/e481815f012d04badb1ce5fb41464214 to your computer and use it in GitHub Desktop.
cleans up merged remote branches
git push origin $(git branch -r --merged origin/master | sed "s/origin\\//:/" | egrep -v "HEAD|master|dev")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment