Skip to content

Instantly share code, notes, and snippets.

@Mazuh
Created March 21, 2019 14:22
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 Mazuh/364920303a9eedd7c66d4f066b913723 to your computer and use it in GitHub Desktop.
Save Mazuh/364920303a9eedd7c66d4f066b913723 to your computer and use it in GitHub Desktop.
Cleaning all git branches, except the master, in the current repository directory.
git branch | 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