Ignoring files and folders in an svn-controlled folder?

家住魔仙堡 提交于 2019-12-24 07:43:19

问题


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 .

回答1:


Set the global-ignores in your svn configuration file.



来源:https://stackoverflow.com/questions/2743931/ignoring-files-and-folders-in-an-svn-controlled-folder

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!