Skip to content

Instantly share code, notes, and snippets.

@danilowoz
Created December 18, 2017 12:03
Show Gist options
  • Save danilowoz/f852affa09b7e54a4ed01ec783197959 to your computer and use it in GitHub Desktop.
Save danilowoz/f852affa09b7e54a4ed01ec783197959 to your computer and use it in GitHub Desktop.
Delete merged branches from local
git branch --merged | grep -v -e "master" -e "\*" | xargs -n 1 git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment