Skip to content

Instantly share code, notes, and snippets.

@GordonBeeming
Last active December 7, 2022 07:22
Show Gist options
  • Save GordonBeeming/5ea628865a05f2d3ad89e676da9c17ed to your computer and use it in GitHub Desktop.
Save GordonBeeming/5ea628865a05f2d3ad89e676da9c17ed to your computer and use it in GitHub Desktop.
#!/bin/sh
git for-each-ref --format '%(refname:short)' refs/heads | grep -v "master\|main" | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment