Skip to content

Instantly share code, notes, and snippets.

@BaronVonPerko
Last active April 20, 2020 12:44
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 BaronVonPerko/531c96ec189b57432f6f38107b495c48 to your computer and use it in GitHub Desktop.
Save BaronVonPerko/531c96ec189b57432f6f38107b495c48 to your computer and use it in GitHub Desktop.
Delete all 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