Skip to content

Instantly share code, notes, and snippets.

@pandabamboo90
Created July 30, 2018 07:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pandabamboo90/f085718ef638b3b60bee643330ec43a0 to your computer and use it in GitHub Desktop.
Save pandabamboo90/f085718ef638b3b60bee643330ec43a0 to your computer and use it in GitHub Desktop.
git command to delete merged branches

git branch --merged | grep -v "*" | grep -v "master" | xargs git branch -d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment