Skip to content

Instantly share code, notes, and snippets.

@vishna
Created November 9, 2012 12:15
Show Gist options
  • Save vishna/4045417 to your computer and use it in GitHub Desktop.
Save vishna/4045417 to your computer and use it in GitHub Desktop.
push & pull
#!/usr/bin/env ruby
BRANCH = `git rev-parse --abbrev-ref HEAD`
MESSAGE = ARGV[0]
REMOTE = "vishna"
_REMOTE = "eyeem"
_BRANCH = "3.4_maintenance"
`git push #{REMOTE} #{BRANCH}`
`hub pull-request \"#{MESSAGE}\" -b #{_REMOTE}:#{_BRANCH} -h #{REMOTE}:#{BRANCH}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment