Skip to content

Instantly share code, notes, and snippets.

@antunesleo
Created February 11, 2019 18:21
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 antunesleo/e2d6d6e3c8baee1fd1e1e425bcafd344 to your computer and use it in GitHub Desktop.
Save antunesleo/e2d6d6e3c8baee1fd1e1e425bcafd344 to your computer and use it in GitHub Desktop.
Delete all branches on current directory except master
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