将SVN迁移到具有选定分支的GitHub

问题描述 投票:0回答:1

我想将项目从SVN迁移到GitHub。

SVN项目的结构是:

Project URL
    trunk
        application1
        application2
        application3
    branches
        version1.0
            application1
            application2
            application3
        version2.0
            application1
            application2
            application3
        version3.0
            application1
            application2
            application3
        version4.0
            application1
            application2
            application3

我想在GitHub上拥有四个文件夹:

application1
    master 
    version1.0
    version2.0
    version3.0
    version4.0
application2
    master 
    version1.0
    version2.0
    version3.0
    version4.0
application3
    master 
    version1.0
    version2.0
    version3.0
    version4.0
application4
    master 
    version1.0
    version2.0
    version3.0
    version4.0

我尝试使用命令(对于一个应用程序):

git svn clone --username $username  --trunk=trunk/application1                  
      --branches=braches/version1/application1    --branches=braches/version2/application1   --branches=braches/version3/application1  
--branches=braches/version4/application1 
 --authors-file=authors_modified.txt  $svnURL   application1    --no-metadata`

但是我得到了错误

W: Ignoring error from SVN, path probably does not exist: (160013): 
Filesystem has no item: File not found: revision 100, path '/branches'
W: Do not be alarmed at the above message git-svn
 is just searching aggressively for old history.

如果此迁移可行,如果是,这里出什么问题了?

git git-svn
1个回答
1
投票
  1. 使用SubGit而不是git-svn转换复杂的树
  2. 一次执行每个应用程序的转换,而不是一个大步骤
© www.soinside.com 2019 - 2024. All rights reserved.