开发者

Ignoring files and folders in an svn-controlled folder?

I'm using svn on a mac. I'm trying to add an eclipse pro开发者_运维问答ject 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

then my ignore.txt file looks like this:

*.class
extras/zips

so "blah.class" is ignored which is perfect, however, the "zips" folder is not ignored, nor is the "test.class" file within it.

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?

So basically I should create an ignore.txt file inside folder "extras" with content

*.class
zips

and repeat for all my subfolders?

Thanks

------- Edited ----------------- Edited above to reflect updated usage of an ignore.txt file using:

svn propset svn:ignore -F ignore.txt .


Set the global-ignores in your svn configuration file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜