Skip to content

Instantly share code, notes, and snippets.

@childnode
Created August 19, 2016 19:00
Show Gist options
  • Save childnode/883042581fe2b31f208e48dfd4481288 to your computer and use it in GitHub Desktop.
Save childnode/883042581fe2b31f208e48dfd4481288 to your computer and use it in GitHub Desktop.
## deletes all "fork/*" branches on remote
git push fork -f $(for i in $(git branch -r | grep "fork/"); do echo :$(echo $i | sed -e 's/fork\///'); done)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment