Skip to content

Instantly share code, notes, and snippets.

@majorvin
Created September 19, 2014 14:53
Show Gist options
  • Save majorvin/9884c817dde2116f0dd2 to your computer and use it in GitHub Desktop.
Save majorvin/9884c817dde2116f0dd2 to your computer and use it in GitHub Desktop.
Delete all local branch
# Delete all merged local branch
git branch --merged | grep -v \* | xargs git branch -D
# Delete all local branches
git branch | grep -v \* | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment