1
0
mirror of synced 2026-05-22 20:33:16 +00:00
Files
csdn/CSDN博文备份/执行gitsvnclone--stdlayout命令无输出-160780169.md
2026-05-05 08:34:04 +08:00

1.8 KiB



这个命令被用来从 SVN 仓库导出到 Git 仓库。


 


git svn clone --stdlayout --authors-file=authors.txt https://svn.code.sf.net/p/hawebs/svn git-migration

但,当输入上面的命令后,却没有任何内容被下载。


问题和解决


出现上面的这个问题的原因是 --stdlayout 这个参数。


原因是 SVN 的仓库没有按照标准的仓库格式来进行存储,所以不能使用 --stdlayout 这个参数。



2026-05-0415-43-37



仓库的结构为上面的样子,文件夹中没有 trunk 目录。


因此,需要修改命令为:


git svn clone --authors-file=authors.txt https://svn.code.sf.net/p/hawebs/svn git-migration


后执行。



2026-05-0415-00-43



执行界面如上图,根据仓库的大小,可能会耗费不少时间。



https://www.isharkfly.com/t/git-svn-clone-stdlayout/10008