Skip to content

Instantly share code, notes, and snippets.

@ImanMh
Created August 7, 2018 05:36
Show Gist options
  • Save ImanMh/25cc7c75cf65c9c57313914ebfe5d7c7 to your computer and use it in GitHub Desktop.
Save ImanMh/25cc7c75cf65c9c57313914ebfe5d7c7 to your computer and use it in GitHub Desktop.
delete merged branches
git branch --merged | egrep -v "(^\*|master|development|beta)" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment