2016-01-20 85 views
0

我想從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 

任何想法,爲什麼不是所有的文件夾(例如「PQRSTU_11」和「ABCDE_12」兩者)枝下MyProject_1215.br沒有得到遷移?

感謝

回答

0

我能夠得到的所有文件夾中的一個分支 - 只是我改變了參數--branches--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