Skip to content

Instantly share code, notes, and snippets.

@jordelver
Created January 22, 2013 12:04
Show Gist options
  • Save jordelver/4594114 to your computer and use it in GitHub Desktop.
Save jordelver/4594114 to your computer and use it in GitHub Desktop.
Git - Delete multiple remote branches

Git - Delete multiple remote branches

Delete all remote branches matching hotfix

git branch -r | grep hotfix | sed 's/origin\///' | xargs -I {} git push origin :{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment