Converting a repository from git to subversion

前端 未结 2 635
情深已故
情深已故 2020-12-08 00:45

Reasons for doing this aside, is there a reasonable way to convert an entire git repository to subversion?

I can find only tons on information on mi

2条回答
  •  温柔的废话
    2020-12-08 00:49

    It's very easy to perform with SubGit.

    $ svnadmin create svn.repo
    $ subgit configure svn.repo
    $ nano svn.repo/conf/subgit.conf to specify a path to your bare repository (you may use "git clone --bare " if you have none locally)
    $ subgit install svn.repo
    

    After conversion your SVN and linked Git repository will be in sync: every Git push will be translated to SVN commit and vice versa. To break translation run

    $ subgit uninstall svn.repo
    

    While translation SubGit will try to preserve commit dates, tags, ignores, merges, EOLs, branches and so on, as it is possible. I can't say the same about git-svn repository.

提交回复
热议问题