Skip to content

Instantly share code, notes, and snippets.

View effata's full-sized avatar

David Tarrant effata

View GitHub Profile

Keybase proof

I hereby claim:

  • I am effata on github.
  • I am effata (https://keybase.io/effata) on keybase.
  • I have a public key ASCnjAH1kg-vRvgPvoDpnAsPKIz4Ty2Vgl5PdJNNA-BXAgo

To claim this, I am signing this object:

@effata
effata / gist:1632857
Created January 18, 2012 12:50
git-push-staging
#!/usr/bin/env ruby
def exec cmd
puts cmd
system cmd or abort unless $fake
end
head = `git symbolic-ref HEAD`.chomp.gsub(/refs\/heads\//, "")
branch = (ARGV.shift || head).gsub(/refs\/heads\//, "")