Skip to content

Instantly share code, notes, and snippets.

@silentsudo
Forked from lkopocinski/deleteMerged.sh
Created February 18, 2018 18:37
Show Gist options
  • Save silentsudo/54a6a53e1eed010130517051416d70e8 to your computer and use it in GitHub Desktop.
Save silentsudo/54a6a53e1eed010130517051416d70e8 to your computer and use it in GitHub Desktop.
Git command for deleting merged branches
git branch --merged | grep -E -v "master|develop" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment