Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

70 lines (39 sloc) 1.715 kb
Why git_remote_branch?
The basic idea for git_remote_branch is to trivialize the interaction with
remote branches in simple situations.
Things we mean by 'simple situations':
- The local and remote name are the same
Another goal of git_remote_branch is to help teach the real underlying git
commands. Each operation done on your behalf is displayed at the console.
(Not yet published as a gem)
(gem install webmat-git_remote_branch --source=
- parts between brackets are optional
- When 'origin_server' is not specified, the name 'origin' is assumed.
$ grb [-h] #=> Displays help
Available commands (with aliases):
create (alias: new)
Create a new local branch as well as a corresponding remote branch.
Automatically track the new remote branch (useful for pulling and merging).
Switch to the new branch.
$ grb create branch_name [origin_server]
delete (aliases: destroy, kill)
Delete the remote branch then delete the local branch.
The local branch is not deleted if there are pending changes.
$ grb delete branch_name [origin_server]
track (aliases: follow grab)
Track an existing remote branch locally.
$ grb track branch_name [origin_server]
This script was originally created by Carl Mercier and made public on his blog
No nonsense GIT, part 1: git-remote-branch
For now I just want to document the changes I make to it. I'm not sure if I'll
keep this alive, it depends on if he wants to keep evolving it himself in a
public repo.
- Mathieu Martin
- Carl Mercier (Carl: want your email here?)
Jump to Line
Something went wrong with that request. Please try again.