Skip to content

Instantly share code, notes, and snippets.

@esbie
Created June 29, 2011 01:04
Show Gist options
  • Save esbie/1052667 to your computer and use it in GitHub Desktop.
Save esbie/1052667 to your computer and use it in GitHub Desktop.
Cleaning up Git branches is tedious
#!/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