Created
October 11, 2019 21:04
-
-
Save msrose/fd33f56d34817a59ff7fba2f909e47a6 to your computer and use it in GitHub Desktop.
Delete greenkeeper branches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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