Created
June 29, 2011 01:04
-
-
Save esbie/1052667 to your computer and use it in GitHub Desktop.
Cleaning up Git branches is tedious
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
#!/usr/bin/env ruby | |
if ARGV.size != 1 | |
puts "what branch?" | |
exit 1 | |
end | |
`git branch -D #{ARGV[0]}` | |
`git push origin :#{ARGV[0]}` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment