SVN only exports folder files

I have a folder in the repository:

svn/Repo/trunk/Folder 

And I want to export all the files in the Folder to a local directory:

 C:\AnotherFolder 

If I do an export from the repository to a local folder, it exports all the files, including the parent folder, so I get the structure:

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

How can I export without a parent directory? So I get something like:

 C:\AnotherFolder\file1 C:\AnotherFolder\file2 
+8
source share
3 answers

You can do this with the following SVN command:

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

This should also work with a relative path for AnotherFolder as follows:

 svn export http://.../svn/Repo/trunk/Folder AnotherFolder 
+7
source

if you want to export the file, the command is svn export http: //.../svn/Repo/trunk/filename C: \ AnotherFolder \ filename

0
source

You can use the ./ path for the current folder in which the command is executed:

 svn export http://.../svn/Repo/trunk/Folder ./ 
0
source

Source: https://habr.com/ru/post/913640/


All Articles