Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A simple collection of useful scripts for Ruby on Rails developers who use Git
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.textile
git-checkout-migrate
git-remote-branch

README.textile

These are a collection of scripts to make it easier to work with Git-based Ruby
on Rails projects.

Installing

To install, create symlinks of each of these executables in a bin folder, such
as /usr/local/bin:


ln -s /path/to/rails-git-scripts/git-* /usr/local/bin/

Each tool can then be run as if it were a normal git command.

Commands

git checkout-migrate

Usage: git checkout-migrate <branch>

This task checks out a branch, and migrates the database appropriately for that
branch. In order, it performs the following tasks:

  1. Migrates down any migrations unique to the current branch,
  2. checks out the new branch, and
  3. migrates up any migrations unique to the new branch.

git remote-branch

Usage: git remote-branch (create|destroy) [<branch>]

Creates or destroys remote branches and their associated local tracking
branches. This code is based on git-remote-branch by Carl Mercier
(carl@carlmercier.com).

Creating Branches

With no arguments (git remote-branch create), adds a new remote branch with the
commits in the current branch (presumably a local-only branch), and configures
this branch to track the remote branch.

With a <branch> specified, creates a remote branch, creates a local
tracking branch, and switches to that branch.

Deleting Branches

With no arguments (git remote-branch delete), removes the current branch both
locally and remotely.

With a <branch> specified, removes the given branch from the remote
repository then deletes the local tracking branch.

Something went wrong with that request. Please try again.