Migrating from subversion to git

technicalpickles edited this page Aug 19, 2010 · 3 revisions

Beyond doing the actual migration from subversion to git, there are a few steps you need to do to clue in moonshine to this fact.

First, you need to update your config/moonshine.yml to specify your using git now, and to point at your git repository:

:scm: git
:repository: git@github.com:yourusername/yourawesomeproject.git

With that in place, you need to get the appropriate version control packages installed. There’s a convenient capistrano task just for this:

cap vcs:install

… or if you are using a multistage setup:

cap staging vcs:install
cap production vcs:install

In addition, the server will need to be able to clone your repository. There are two main ways:

With these done, you can git commit and push your changes of config/moonshine.yml, and can then cap deploy as normal.