9

我在存储库中有一个文件夹:

svn/Repo/trunk/Folder

我想将所有文件导出Folder到本地目录:

C:\AnotherFolder

如果我从存储库导出到本地文件夹,它会导出所有文件,包括父文件夹,所以我最终得到以下结构:

C:\AnotherFolder\Folder\file1 
C:\AnotherFolder\Folder\file2 
etc

如何在没有父目录的情况下导出?所以我得到类似的东西:

C:\AnotherFolder\file1 
C:\AnotherFolder\file2
4

3 回答 3

9

您应该可以使用以下 SVN 命令执行此操作:

svn export http://.../svn/Repo/trunk/Folder C:\AnotherFolder

这也应该适用于 AnotherFolder 的相对路径,如下所示:

svn export http://.../svn/Repo/trunk/Folder AnotherFolder
于 2012-04-19T17:05:46.403 回答
0

如果要导出文件,命令是
svn export http://.../svn/Repo/trunk/filename C:\AnotherFolder\filename

于 2015-10-09T02:22:38.173 回答
0

您可以使用./运行命令的当前文件夹的路径:

svn export http://.../svn/Repo/trunk/Folder ./
于 2019-09-22T18:33:59.087 回答