A Fresh Cup is Mike Gunderloy's software development weblog, covering Ruby on Rails and whatever else I find interesting in the universe of software. I'm a full-time Rails developer and contributor, available for long- or short-term consulting, with solid experience in working as part of a distributed team. If you'd like to hire me, drop me a line. I'm also the author of Rails Rescue Handbook and Rails Freelancing Handbook.

Navigation
« Double Shot #634 | Main | Double Shot #632 »
Monday
Jan252010

Double Shot #633

It was a busy weekend - apparently for other people as well as for me.

Reader Comments (1)

Mike,

Another great utility for handling remote branches is git_remote_branch - http://github.com/webmat/git_remote_branch. This is my favorite tool that hides much of the complexity of handling with them:


$ grb
git_remote_branch version 0.3.0

Usage:

grb create branch_name [origin_server]

grb publish branch_name [origin_server]

grb rename branch_name [origin_server]

grb delete branch_name [origin_server]

grb track branch_name [origin_server]



Notes:
- If origin_server is not specified, the name 'origin' is assumed (git's default)
- The rename functionality renames the current branch

The explain meta-command: you can also prepend any command with the keyword 'explain'. Instead of executing the command, git_remote_branch will simply output the list of commands you need to run to accomplish that goal.
Example:
grb explain create
grb explain create my_branch github

All commands also have aliases:
create: create, new
delete: delete, destroy, kill, remove, rm
publish: publish, remotize, share
rename: rename, rn, mv, move
track: track, follow, grab, fetch

And by the way, thanks for the plug on the Rapid App Deployment ;)

January 25, 2010 | Unregistered CommenterFelipe Coury

PostPost a New Comment

Enter your information below to add a new comment.
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>