Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I just started using SVN, and I have a cache directory that I don't need under source control.

(我刚开始使用SVN,我有一个在源代码管理下不需要的缓存目录。)

How can I ignore the whole directory/folder with SVN?

(如何忽略SVN的整个目录/文件夹?)

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

(我在OS X和命令行上使用VersionsTextMate 。)

  ask by Gilean translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
424 views
Welcome To Ask or Share your Answers For Others

1 Answer

Set the svn:ignore property of the parent directory:

(设置父目录的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 .

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...