Skip to content

Instantly share code, notes, and snippets.

@io-developer
Created October 29, 2018 08:52
Show Gist options
  • Save io-developer/781cfe639ce0816c178c3888e0a594e0 to your computer and use it in GitHub Desktop.
Save io-developer/781cfe639ce0816c178c3888e0a594e0 to your computer and use it in GitHub Desktop.
# Drop all local branches except current and master
git branch | grep -v "master" | grep -v ^* | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment