Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save blakemerryman/b74bc8cb16c41f751e4b515d1654de88 to your computer and use it in GitHub Desktop.
Save blakemerryman/b74bc8cb16c41f751e4b515d1654de88 to your computer and use it in GitHub Desktop.
Delete all local git branches
git config --global alias.trim '!f() { git branch | grep -v "\*" | xargs -n 1 git branch -D; }; f'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment