Skip to content

Instantly share code, notes, and snippets.

@FrankDeGroot
Created February 7, 2022 10:58
Show Gist options
  • Save FrankDeGroot/d4067742cd92534e89e9535c7b53eb92 to your computer and use it in GitHub Desktop.
Save FrankDeGroot/d4067742cd92534e89e9535c7b53eb92 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