SVN检出文件夹的内容,而不是文件夹本身 [英] SVN checkout the contents of a folder, not the folder itself
问题描述
我对linux和svn相当陌生.我正在尝试使用此命令(在public_html中)将项目的主干文件夹检出到我的public_html目录中:
I'm fairly new to linux and svn. I'm trying to checkout the trunk folder of a project into my public_html directory using this command (while in public_html):
svn checkout file:///home/landonwinters/svn/waterproject/trunk
waterproject目录包含从解压缩基本安装的drupal中获取的文件.
The waterproject directory contains the files from untarring a base install of drupal.
它检查得很好,除了所有文件都在public_html/trunk
中而不是仅仅在public_html
中.
It checks out fine, except all the files are in public_html/trunk
instead of just being in public_html
.
我不知道将主干的所有内容移至public_html和rm trunk的命令,但是我认为我可以相对容易地弄清楚这一点.我只想知道是否可以只检查文件夹的内容,而无需文件夹本身.
I don't know the command to move all the contents of trunk up to public_html and rm trunk, but I think I could figure that out relatively easily. I just want to know if I can just check out the contents of a folder, without the folder itself.
推荐答案
只需在其中添加.
:
svn checkout file:///home/landonwinters/svn/waterproject/trunk .
这意味着:检出到当前目录.
That means: check out to current directory.
这篇关于SVN检出文件夹的内容,而不是文件夹本身的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!