默認情況下混帳svn的克隆進口只從分支創建起的歷史,儘管事實上,歷史文件存在於SVN倉庫先前分支的創建。
我們的svn分支是由svn copy
創建的,如果有關係的話。
我嘗試
我試過--no-minimize-url
和--follow-parent
,但沒有成功。生成的git倉庫與沒有這些參數相同,從分支創建開始。
期望的結果
Git倉庫從SVN倉庫創建完整的歷史。
更新 我的實際命令行是git svn clone http://svnserver/repo/dir1/dir2/project
。
什麼幫助是-T與結果命令的參數
git svn clone http://svnserver/repo/ -T dir1/dir2/project
非常感謝!
你用-T標誌試過了嗎? git svn clone -T repo_url? – 2013-03-01 17:57:39
@Kata,我不是在引用'-s'標誌嗎?標準佈局。它採用標準的trunk/branches/tags目錄格式,因此它從SVN存儲庫導入所有分支和標籤。我發現http://jonmaddox.com/2008/03/05/cleanly-migrate-your-subversion-repository-to-a-git-repository/特別適用於遷移。 – mgarciaisaia 2013-03-01 20:19:24
你可以發佈你用來克隆svn回購的整個命令(排除敏感url)嗎? – 2013-03-01 20:30:10