SVN检出忽略文件夹 [英] SVN checkout ignore folder
本文介绍了SVN检出忽略文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以在svn结帐时忽略文件夹吗?我需要在构建服务器上结帐时忽略DOCs文件夹.
Can I ignore a folder on svn checkout? I need to ignore DOCs folder on checkout at my build server.
编辑:不选择忽略外部.我有一些需要的外部条件.
edit: Ignore externals isn't an option. I have some externals that I need.
推荐答案
您不能直接忽略签出中的文件夹,但是可以在svn 1.5中使用稀疏签出.例如:
You can't directly ignore folders on a checkout, but you can use sparse checkouts in svn 1.5. For example:
$ svn co http://subversion/project/trunk my_checkout --depth immediates
这会将项目主干中的文件和目录检入"my_checkout",但不会递归到这些目录中.例如:
This will check files and directories from your project trunk into 'my_checkout', but not recurse into those directories. Eg:
$ cd my_checkout && ls
bar/ baz foo xyzzy/
然后将'bar'的内容取下来:
Then to get the contents of 'bar' down:
$ cd bar && svn update --set-depth infinity
这篇关于SVN检出忽略文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文