If you aren’t using the GitHub gem, then perhaps webmat’s git_remote_branch may interest you. The aim of the micro-project can best be summed up with a quote:
I believe the commands for the simple scenario can be simpler.
Check out the blog post for more information on what git_remote_branch does and how it can help.



Thanks for the mentions, guys :-)