Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Delete remote branches from local

git remote show origin | grep {pattern} | awk '{print $1}' | xargs git push origin -d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment