Skip to content

Instantly share code, notes, and snippets.

@baldurrensch
Created December 6, 2013 19:27
Show Gist options
  • Save baldurrensch/7830696 to your computer and use it in GitHub Desktop.
Save baldurrensch/7830696 to your computer and use it in GitHub Desktop.
Delete merged branches
# github is the name of my remote
git branch --merged | grep -v "\*" | xargs -n 1 git push --delete github
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment