Skip to content

Instantly share code, notes, and snippets.

@ryanwelcher
Last active July 17, 2024 13:15
Show Gist options
  • Save ryanwelcher/add478c78223d7a4e79fd738c773bea2 to your computer and use it in GitHub Desktop.
Save ryanwelcher/add478c78223d7a4e79fd738c773bea2 to your computer and use it in GitHub Desktop.
git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment