如何使用 SVN 忽略目录? [英] How do I ignore a directory with SVN?
本文介绍了如何使用 SVN 忽略目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚开始使用 SVN,我有一个缓存目录,在源代码控制下我不需要它.如何使用 SVN 忽略整个目录/文件夹?
I just started using SVN, and I have a cache directory that I don't need under source control. How can I ignore the whole directory/folder with SVN?
我正在使用 版本 和 TextMate 在 OS X 和命令行上.
I am using Versions and TextMate on OS X and commandline.
推荐答案
设置父目录的svn:ignore
属性:
svn propset svn:ignore dirname .
如果您有多个要忽略的内容,请在属性值中用换行符分隔.在这种情况下,使用外部编辑器编辑属性值会更容易:
If you have multiple things to ignore, separate by newlines in the property value. In that case it's easier to edit the property value using an external editor:
svn propedit svn:ignore .
这篇关于如何使用 SVN 忽略目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文