Skip to content

Instantly share code, notes, and snippets.

@codezilla-xx
Created May 16, 2012 18:41
Show Gist options
  • Save codezilla-xx/2712915 to your computer and use it in GitHub Desktop.
Save codezilla-xx/2712915 to your computer and use it in GitHub Desktop.
Delete all merged local git branches
git branch -d $( git branch --merged | grep -v '^\*' | grep -v 'master' )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment