Skip to content

Instantly share code, notes, and snippets.

@somoso
Created November 23, 2016 14:04
Show Gist options
  • Save somoso/5d7f279d17f66f8bb07d25b06845130b to your computer and use it in GitHub Desktop.
Save somoso/5d7f279d17f66f8bb07d25b06845130b to your computer and use it in GitHub Desktop.
Prune branches that have already been merged into master
#!/bin/sh
git branch -d $(git branch --merged)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment