繁体   English   中英

SVN签出文件夹的内容,而不是文件夹本身

[英]SVN checkout the contents of a folder, not the folder itself

我是linux和svn的新手。 我正在尝试使用此命令将项目的trunk文件夹签出到我的public_html目录中(在public_html中):

svn checkout file:///home/landonwinters/svn/waterproject/trunk

waterproject目录包含解压drupal基本安装的文件。

它检查正常,除了所有文件都在public_html/trunk而不是只是在public_html

我不知道将trunk的所有内容移动到public_html和rm trunk的命令,但我想我可以相对容易地解决这个问题。 我只是想知道我是否可以查看文件夹的内容,而不是文件夹本身。

只需添加一个. 它:

svn checkout file:///home/landonwinters/svn/waterproject/trunk .

这意味着:检查当前目录。

svn co svn://path destination

要指定当前目录,请使用“。” 为您的目标目录:

svn checkout file:///home/landonwinters/svn/waterproject/trunk .

只需在命令行中添加目录:

svn checkout svn://192.168.1.1/projectname/ target-directory/

在命令行上提供目录:

svn checkout file:///home/landonwinters/svn/waterproject/trunk public_html

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM