Skip to content

Instantly share code, notes, and snippets.

@jtwalters
Created April 22, 2014 18:32
Show Gist options
  • Save jtwalters/11189634 to your computer and use it in GitHub Desktop.
Save jtwalters/11189634 to your computer and use it in GitHub Desktop.
Delete remote GitHub pull branches
git for-each-ref --format="%(refname:short)" refs/remotes/origin/pr/\* | xargs git branch -d -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment