Skip to content

Instantly share code, notes, and snippets.

@Sacristan
Created January 11, 2016 16:44
Show Gist options
  • Save Sacristan/e13e8f4e80b918be2747 to your computer and use it in GitHub Desktop.
Save Sacristan/e13e8f4e80b918be2747 to your computer and use it in GitHub Desktop.
Prune local branches that have been already merged into master
git branch --merged master | grep -v 'master$' | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment