Search code examples
gitsvnrepositorymigratescmmanager

Migrate a svn repository to a git repository in scm-manager


I have installed scm-manager 1.45 as a service on my windows server 2012 r2.

I have a subversion repository dump file. I managed to import that to a subversion repo in scm-manager. But I would really want to migrate that to a git repository instead, but I can't seem to figure out how. I want all the commit history to follow.


Solution

  • See that you have read/write permissions where the SCM-manager repositories are located.

    1. Create new directory MyProject where the SCM-manager repositories are located;
    2. Step into MyProject;
    3. Do the command git svn clone theURLfromSCMmanagerSvnRepo;
    4. Add the new repository via SCM-manager "Import repositories" -->Choose Git in the Repository Import Wizard -->Import from directory.
    5. It should now detect your new repository.