Skip to content

Instantly share code, notes, and snippets.

@wusuopubupt
Created June 23, 2017 07:19
Show Gist options
  • Save wusuopubupt/2d3b68fb52dcb42ebaeee989d058e4b1 to your computer and use it in GitHub Desktop.
Save wusuopubupt/2d3b68fb52dcb42ebaeee989d058e4b1 to your computer and use it in GitHub Desktop.
delete git branches which have already been merged
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment