如何从SVN存储库下载单个文件?下载单个文件
例如:
svn co http://server.com/svn/trunk/test.file test.file
svn: URL 'http://server.com/svn/trunk/test.file test.file' refers to a file, not a directory
但我可以通过这种方式下载目录。
如何从SVN存储库下载单个文件?下载单个文件
例如:
svn co http://server.com/svn/trunk/test.file test.file
svn: URL 'http://server.com/svn/trunk/test.file test.file' refers to a file, not a directory
但我可以通过这种方式下载目录。
svn checkout <url_of_big_dir> <target> --depth empty
cd <target>
svn up <file_you_want>
我不认为你可以检查出一个单一的文件。
如果你只是想要的文件,并不在乎SVN,你可以使用wget:
wget http://server.com/svn/trunk/test.file`
如果你已经签出了trunk
目录,你在你的本地拷贝,你可以更新单个文件:
svn up test.file
我们可以做到这一点使用SVN导出 –
2013-06-21 12:00:17
*您可以*退房从Subversion一个文件。 [分两步完成。首先签出一个空目录,然后更新单个文件](http://stackoverflow.com/questions/122107/checkout-one-file-from-subversion/122291#122291)。 – 2013-12-09 13:30:21
很高兴知道,如果svn再次变得相关,我会记住它的;) – 2013-12-09 21:35:25