Skip to content

Instantly share code, notes, and snippets.

@loctanvo
Created February 10, 2015 09:07
Show Gist options
  • Save loctanvo/1a9683f7b8a37e0571d7 to your computer and use it in GitHub Desktop.
Save loctanvo/1a9683f7b8a37e0571d7 to your computer and use it in GitHub Desktop.
Delete merged branches
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d
@loctanvo
Copy link
Author

NOTE: will delete master branch if master is deleted from remote

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