Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ricardopereira/46c1edbe0377b4e81988fb389ee021af to your computer and use it in GitHub Desktop.
Save ricardopereira/46c1edbe0377b4e81988fb389ee021af 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