Skip to content

Instantly share code, notes, and snippets.

@vitovalov
Last active August 29, 2015 14:15
Show Gist options
  • Save vitovalov/67d44de875311ad342ab to your computer and use it in GitHub Desktop.
Save vitovalov/67d44de875311ad342ab to your computer and use it in GitHub Desktop.
Delete locally already merged branches on develop
git checkout develop
git branch --merged | grep -v "*" | grep -v -e "[develop|master]" | xargs -n 1 git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment