In order to convert existent SVN-repositories to git there are a few simple steps to take. First of all you'll need the following tools (if not already available)

  • git (apt-get git-core)
  • subversion (you obviously should already have that)

That's not too much, is it? Now given you have the svn-repository "foo" and want to convert it to "bar.git", all you have to do is

This step might take a while depending on the number of commits in your obsolete repository.

So what happens to all the important commits that were made while your machine was busy cloning the repository? No problem there, just use

  • git-svn rebase

once and you should be ready.

-- AlexPost - 27 Mar 2009

DocumentationForm edit

Title How to convert SVN-repositories to git
Description This page describes which tools and commands are needed to convert a SVN-repository to git
Tags SVN repository git conversion
Category Admin
Topic revision: r4 - 10 Feb 2012, ArthurVarkentin
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback