user246114
user246114

Reputation: 51661

Ignoring files and folders in an svn-controlled folder?

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

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 .

Upvotes: 1

Views: 889

Answers (1)

Stefan
Stefan

Reputation: 43575

Set the global-ignores in your svn configuration file.

Upvotes: 1

Related Questions