SVN到GIT迁移,其中SVN存储库中有存储库



我有一个具有以下文件夹结构的颠覆存储库:

项目名ProjectName/APIProjectName/Services/Service1ProjectName/Services/Service2ProjectName/WebApps/app1ProjectName/WebApps/App2

使用颠覆我可以检查全部或单个存储库。我已经将根存储库转换为git存储库。现在我无法克隆单个项目,例如"projectname/webapps/app1"

在迁移期间我错过了什么吗?是否有任何GIT SVN命令将颠覆存储库转换为GIT存储库,并从内部SVN存储库中创建子模型?

假设您希望在git repo中进行transforme app1。App1具有以下目录

中继,分支,标签

git svn init --prefix=svn/ --username='user' --no-metadata --no-minimize-url --trunk='trunk' --tags='tags' --branches='branches' http://svnserver/projectname/webapps/app1

- trunk ='trunk' - tags ='tags' - branches ='branches'可以将分支中的所有东西转换为git分支,trunk,to master to master和tag folder folder fold git tags。

- no-minimize-url将仅考虑http://svnserver/projectName/webapps/app1,而不是http://svnserver/projectName/(repo的根(。

git svn docs

svn2git,将一个转换为另一个转换的好工具。

最新更新