Skip to content

Instantly share code, notes, and snippets.

@amonger
Created March 16, 2016 15:05
Show Gist options
  • Save amonger/d4c41c4d9f38eeefc04e to your computer and use it in GitHub Desktop.
Save amonger/d4c41c4d9f38eeefc04e to your computer and use it in GitHub Desktop.
Remove Merged Branches
git config --global alias.cleanup '! git branch --merged | grep -v "^* 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