SVN检查文件夹的内容,而不是文件夹本身

时间:2022-11-26 00:26:43

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):

我是linux和svn的新手。我尝试使用这个命令将项目的主干文件夹签入我的public_html目录(而在public_html中):

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

The waterproject directory contains the files from untarring a base install of drupal.

waterproject目录包含了drupal基础安装的文件。

It checks out fine, except all the files are in public_html/trunk instead of just being in public_html.

它检查得很好,除了所有的文件都在public_html/trunk中,而不是仅仅在public_html中。

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.

我不知道将trunk的所有内容移动到public_html和rm trunk的命令,但是我认为我可以相对容易地找到它。我只是想知道我是否可以只检查一个文件夹的内容,而不包括文件夹本身。

4 个解决方案

#1


269  

Just add a . to it:

只是添加一个。:

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

That means: check out to current directory.

这意味着:检出到当前目录。

#2


19  

svn co svn://path destination

To specify current directory, use a "." for your destination directory:

要指定当前目录,请使用“。”

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

#3


10  

Just add the directory on the command line:

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

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

#4


8  

Provide the directory on the command line:

在命令行上提供目录:

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

#1


269  

Just add a . to it:

只是添加一个。:

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

That means: check out to current directory.

这意味着:检出到当前目录。

#2


19  

svn co svn://path destination

To specify current directory, use a "." for your destination directory:

要指定当前目录,请使用“。”

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

#3


10  

Just add the directory on the command line:

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

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

#4


8  

Provide the directory on the command line:

在命令行上提供目录:

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