Macros for commonly-used Git commands
Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
README.md

README.md

Git branch tools

Macros for commonly-used Git commands

$ git branch-delete branch [remote]    # Deletes a branch locally and remotely.
$ git branch-checkout branch [remote]  # Checks out an existing branch.
$ git branch-create branch [remote]    # Makes a new branch and sets up remote tracking.
$ git branch-list [remote]             # Lists branches in a remote.
$ git branch-track [remote]            # Sets up tracking in a remote branch.

All remotes default to origin.

Installation

Using ShellBundler:

$ git clone git://github.com/rstacruz/git-branch-tools.git ~/.bash/bundle/git-branch-tools
$ sbundle reload

Otherwise, just copy bin/* somewhere in your path.