nakhli
nakhli

Reputation: 4059

Pushing an existing svn repository to git

I'm using SVN and I'm not planning to migrate to Git for now. I'd like to try out AppHarbor but currently you must use Git to deploy code to AppHarbor.

I'd like to continue using SVN but push to AppHarbor's git repository from time to time. Is there an easy way to achieve this?

Upvotes: 1

Views: 559

Answers (1)

Mark Longair
Mark Longair

Reputation: 468021

You can create a git clone of your SVN repository with:

git svn clone --stdlayout <URL-OF-YOUR-SVN-REPOSITORY>

... and keep that up to date by periodically running:

git svn rebase

... in the directory created by the git svn clone. You can then push from that git mirror of your Subversion repository to AppHarbor.

Upvotes: 3

Related Questions