忽略 svn 控制的文件夹中的文件和文件夹? [英] Ignoring files and folders in an svn-controlled folder?
问题描述
我在 Mac 上使用 svn.我正在尝试将 Eclipse 项目添加到存储库.我想忽略所有 .class 文件和一些子文件夹.我正在使用一个(有点)有效的 ignore.txt 文件.我的文件夹结构,例如:
I'm using svn on a mac. I'm trying to add an eclipse project to a repo. I want to ignore all .class files, and a few subfolders. I am using an ignore.txt file which (kind of) works. My folder structure, for example:
project/
extras/
test.class
zips/
blah.class
ignore.txt
然后我的ignore.txt文件看起来像这样:
then my ignore.txt file looks like this:
*.class
extras/zips
所以blah.class"被忽略,这是完美的,但是,zips"文件夹不会被忽略,其中的test.class"文件也不会被忽略.
so "blah.class" is ignored which is perfect, however, the "zips" folder is not ignored, nor is the "test.class" file within it.
我想我必须为每个子文件夹创建一个 ignore.txt 文件,我不能像现在这样在根文件夹中创建一个主文件夹?
I guess I have to create an ignore.txt file for every sub folder, I can't create one master on in the root folder like I have now?
所以基本上我应该在包含内容的文件夹extras"中创建一个 ignore.txt 文件
So basically I should create an ignore.txt file inside folder "extras" with content
*.class
zips
并对我的所有子文件夹重复?
and repeat for all my subfolders?
谢谢
------- 已编辑 -------上面编辑以反映 ignore.txt 文件的更新用法:
------- Edited ----------------- Edited above to reflect updated usage of an ignore.txt file using:
svn propset svn:ignore -F ignore.txt .
推荐答案
在 svn 配置文件.
Set the global-ignores
in your svn configuration file.
这篇关于忽略 svn 控制的文件夹中的文件和文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!