本地SVN仓库git

我需要将本地SVN存储库转换为GIT。 我知道如何将远程SVN仓库转换为git,但是,我只有本地仓库; 他们不再被托pipe。 我将如何去转换本地SVN回购混帐?

我试过的是这样的:

git svn clone -s file://data/svn/repo/ /data/git/repo.git

错误是:

E: 'trunk' is not a complete URL and a separate URL is not specified

弄清楚了…

我需要一个额外的/后面的file://以便它从文件系统的根目录开始。 赚钱吧!

最后的指挥工作:

git svn clone -s file:///data/svn/repo/ /data/git/repo.git

另一种select是使用SubGit

 $ subgit install /data/svn/repo/ 

不同的是,它也转换忽略,标签,与EOL相关的设置,创build的Git会自动与SVN存储库保持同步。 打破同步运行

 $ subgit uninstall /data/svn/repo 

生成的仓库将br