How can I tell svn to ignore specific files anywhere?

How can I tell svn that every time, in any directory of any project, it encounters foo and bar , it should completely ignore them?

+4
source share
2 answers

Reject the ~ / .subversion / config global-ignore option:

 ### Set global-ignores to a set of whitespace-delimited globs ### which Subversion will ignore in its 'status' output. # global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store 
+9
source

The global-ignore can also be entered into the configuration file of the entire Subversion system so that it applies to all users and all repositories.

As an example, I added the following to /etc/subversion/config on my Linux / CentOS system:

 [miscellany] global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo *.rej *~ #*# .#* .*.swp .DS_Store ._* 

I based this configuration on my default value of ~/.subversion/config for the global-ignores parameter originally commented out by Subversion.

Now all of these name patterns will be ignored for all users.

0
source

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


All Articles