Created
February 27, 2015 17:14
-
-
Save Kallin/25a994724fccf0b33314 to your computer and use it in GitHub Desktop.
delete selected branches in ruby
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
delete_branches = [ | |
'branch_a', | |
'branch_b', | |
'branch_c', | |
] | |
delete_branches.each do |branch| | |
system "git branch -D #{branch}" | |
system "git push origin --delete #{branch}" | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment