Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
288 views
in Technique[技术] by (71.8m points)

svn - 如何忽略SVN目录?(How do I ignore a directory with SVN?)

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

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

1 Reply

0 votes
by (71.8m points)

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 .

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...