Skip to content

Instantly share code, notes, and snippets.

@sangdongvan
Created November 19, 2015 14:47
Show Gist options
  • Save sangdongvan/1de8d104ab5a5b79ef7b to your computer and use it in GitHub Desktop.
Save sangdongvan/1de8d104ab5a5b79ef7b to your computer and use it in GitHub Desktop.
Delete all local branch start with "feature/" prefix
git branch | grep feature/ | while read feature
do
git branch -D $feature
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment