简体   繁体   English

仅文件夹/无文件时如何“ SVN UP-设置深度无限”

[英]How “SVN UP --set-depth infinity” with just folders/no files

What I'm trying to do is check out a directory and all of its sub-folders without the files in them -OR- svn up a directory but only get the folders and not the files within them 我要尝试执行的操作是检出目录及其所有子文件夹,且其中没有文件-OR-向上移动目录,但仅获取文件夹,而不获取其中的文件

Right now what I'm doing in OSX terminal is: 现在,我在OSX终端中正在做的是:

svn up --set-depth infinity

But this pulls all of the sub directories along with the files within them. 但这会拉动所有子目录以及其中的文件。

You can't update in one command any of two needed forms. 您不能在一种命令中更新两种所需形式中的任何一种。

--depth option accept only limited predefined set of arguments, none of which fit your needs: --depth选项仅接受有限的预定义参数集,这些都不符合您的需求:

  • files updates only files in parent-dir 文件仅更新父目录中的文件
  • immediates update both types of direct child - files and directories 立即更新两种类型的直接子级-文件和目录

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

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