如何忽略SVN的目录? [英] How do I ignore a directory with SVN?

查看:121
本文介绍了如何忽略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?

我正在使用版本和操作系统X和命令行中的 TextMate

I am using Versions and TextMate on OS X and commandline.

推荐答案

设置父目录的 svn:ignore 属性: / p>

Set the svn:ignore property of the parent directory:

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆