SVN结帐忽略文件夹 [英] SVN checkout ignore folder
本文介绍了SVN结帐忽略文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以忽略 svn checkout 上的文件夹吗?我需要在构建服务器上结账时忽略 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屋!
查看全文