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

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.


Using ShellBundler:

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

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