为什么只有一个文件夹从SVN分支迁移? (SVN到Git)

时间:2016-01-20 03:19:20

标签: git svn git-svn

我正在尝试从SVN分支迁移到Git并使用以下命令:

git svn clone --authors-file=/c/TEST/authors.txt --prefix=svn/ --branches=/MyScripts/branches/MyProject_1215.br/ https://subversion.mycompany.com/svn/repos/MyProject/ MyScripts/branches/MyProject_1215.br

但是,一旦这个命令完成,它只从分支中获取“只有一个”文件夹(在本例中为“ABCDE_12”) - MyProject_1215.br。

以下是控制台日志:

    .
    .
    .
r49975 = 76ef377d1128bbxxxxxxxxx79xxxxxx434089e (refs/remotes/PQRSTU_11)
        A       apply/db/MyProject_1215_some_patch.sql
        A       apply/db/patch/CREATE_INDEX.sql
r50038 = a458ff2ed37092xxxxxxxb7dbyyy971e5yyy5b (refs/remotes/ABCDE_12)
Checked out HEAD:
  https://subversion.mycompany.com/svn/repos/MyProject/MyScripts/branches/MyProject_MR1215.br/ABCDE_12 r50038

知道为什么不能迁移分支MyProject_1215.br下的所有文件夹(例如“PQRSTU_11”和“ABCDE_12”)?

由于

1 个答案:

答案 0 :(得分:0)

我能够获取分支中的所有文件夹 - 只需将参数 - 分支 更改为 - trunk 以下命令:

git svn clone --authors-file=/c/TEST/authors.txt --prefix=svn/ --trunk=/MyScripts/branches/MyProject_1215.br/ https://subversion.mycompany.com/svn/repos/MyProject/ MyScripts/branches/MyProject_1215.br