Svn (subversion) ignores certain file types in all subdirectories configured to root?

I have the following folder structure and I would like svn to ignore all eclipse files ( .classpath and .project and .settings ) in subprojects

 main-project/ sub-1/.classpath sub-2/.classpath sub-3/part1/.classpath sub-3/part2/.classpath 

Is there a way to configure .svn in the "main-project" to svn:ignore **/**.classpath?

So I do not need to edit it in each separate folder?

+6
source share
2 answers

I believe the answer I was looking for is:

 vim ~/.subversion/config 

scroll down to "global-ignores":

 global-ignores = *.classpath 

The answer came from here:

How can I recursively configure svn status to hide ignored files?

+11
source

Use the --recursive ( -R ) flag in svn propset and set svn:ignore so that it is recursively applied to each subfolder:

svn propset svn:ignore -R <mask> <directory or . for current>

http://svnbook.red-bean.com/en/1.5/svn.ref.svn.c.propset.html

+5
source

Source: https://habr.com/ru/post/893903/


All Articles