git remote branch
Jun 03 by
Andre in
Ruby »
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.