将svn回购迁移到git。svn回购中的多个应用程序需要拆分为单独的git回购

将svn回购迁移到git。svn回购中的多个应用程序需要拆分为单独的git回购,svn,git,migration,Svn,Git,Migration,我有一个svn repo,其中包含各种应用程序,作为单个svn repo的子目录。这是因为我可以签下部分回购协议。因为我不能用git这么做,显然我需要多次回购。我想在git导出中保存我的提交历史记录。最简单的方法是什么?您不需要为克隆指定根目录。您可以这样做: git svn clone svn://repository/subdirectory_of_app1 app1 git svn clone svn://repository/subdirectory_of_app2 app2 ...

我有一个svn repo,其中包含各种应用程序,作为单个svn repo的子目录。这是因为我可以签下部分回购协议。因为我不能用git这么做,显然我需要多次回购。我想在git导出中保存我的提交历史记录。最简单的方法是什么?

您不需要为克隆指定根目录。您可以这样做:

git svn clone svn://repository/subdirectory_of_app1 app1
git svn clone svn://repository/subdirectory_of_app2 app2
...
如果每个应用程序文件夹中都有trunk/Branchs/tags文件夹,还可以添加其他参数:

git svn clone svn://repository/subdirectory_of_app1 -T trunk -t tags -b branches app1
...

这对我来说也很好,您还可以将git提交同步回svn存储库。