2012-04-19 26 views
6

我有一個文件夾在資源庫中:SVN導出文件夾的文件只有

svn/Repo/trunk/Folder 

,我想所有的文件Folder導出到本地目錄:

C:\AnotherFolder 

如果我做一個出口從存儲庫到本地文件夾,它會導出包括父文件夾在內的所有文件,所以我最終得到的結構如下:

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

如何在沒有父目錄的情況下導出?所以我得到的是這樣的:

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

回答

6

你應該能夠做到這一點與以下SVN命令:

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

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

這也應與AnotherFolder這樣的相對路徑工作

+0

你說得對。我正在嘗試在Visual Build Pro中執行此操作,並且假定它是它正在使用的命令。我猜不會。謝謝 – prestomanifesto 2012-04-19 17:19:09

0

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

+0

謝謝弗蘭克,你的回答幫助我解決了我的問題,儘管這不是對原始問題的正確答案。 – 2016-04-15 03:11:47