Skip to content

Instantly share code, notes, and snippets.

@aitchkhan
Last active March 7, 2018 09:58
Show Gist options
  • Save aitchkhan/26d1ff21d1e11f07939103ce64460d1b to your computer and use it in GitHub Desktop.
Save aitchkhan/26d1ff21d1e11f07939103ce64460d1b to your computer and use it in GitHub Desktop.
git
delete branches that are merged in master develop
git branch --merged | egrep -v "(^\*|master|develop)" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment