Skip to content

Instantly share code, notes, and snippets.

@mono0926
Created August 5, 2013 22:11
Show Gist options
  • Save mono0926/6160043 to your computer and use it in GitHub Desktop.
Save mono0926/6160043 to your computer and use it in GitHub Desktop.
clear_unnecessary_branches
git branch -r --merged | grep -o "feature\/.*" | while read BRANCH; do git push origin :${BRANCH}; done; unset BRANCH;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment