git remote branch

Jun 3, 2009 by Andre

Charles Quinn sent me this link, and I immediately installed it: git_remote_branch. It provides nice shortcuts for dealing with remote branches. Examples:

$ grb create branch_name [origin_server]

Create a new local branch as well as a corresponding remote branch based on the branch you currently have checked out. Track the new remote branch. Checkout the new branch.

$ grb publish branch_name [origin_server]

Publish an existing local branch to the remote server. Set up the local branch to track the new remote branch.

And an additional nice touch: grb "prints all commands it runs on your behalf in red, so you eventually learn them." Nice! The link again: git_remote_branch.

Post a comment

 
This is so filters can reject the spam-bots. Thanks!