Skip to content

Instantly share code, notes, and snippets.

@wrossmck
Last active September 27, 2018 09:09
Show Gist options
  • Save wrossmck/3cc661bd041297296d43c8f72ee846b7 to your computer and use it in GitHub Desktop.
Save wrossmck/3cc661bd041297296d43c8f72ee846b7 to your computer and use it in GitHub Desktop.
delete all local git branches except master
#!/bin/bash
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