Skip to content

Instantly share code, notes, and snippets.

@msrose
Created October 11, 2019 21:04
Show Gist options
  • Save msrose/fd33f56d34817a59ff7fba2f909e47a6 to your computer and use it in GitHub Desktop.
Save msrose/fd33f56d34817a59ff7fba2f909e47a6 to your computer and use it in GitHub Desktop.
Delete greenkeeper branches
for branch in $(git for-each-ref --format="%(refname)" | grep "greenkeeper/"); do
git push origin :${branch#refs/remotes/origin/}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment