Skip to content

Instantly share code, notes, and snippets.

@jim80net
Created August 30, 2021 16:17
Show Gist options
  • Save jim80net/9c8c876b6f5b513db503df8eb100e78f to your computer and use it in GitHub Desktop.
Save jim80net/9c8c876b6f5b513db503df8eb100e78f to your computer and use it in GitHub Desktop.
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