Subversion global-ignores

To force your svn client to ignore files and folders from Subversion without
using the svn:ignore property, edit ~/.subversion/config. This file should
already have a commented-out line similar to the following:

# global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo

Why use the global-ignores rather than the svn:ignore property? I wanted my
svn client to ignore my .git directory, but didn’t want to modify the
svn:ignore property in the repository. No one else cares about the directory
I’m ignoring (.git) – they don’t even have that directory.

Here’s my new global-ignores line:

global-ignores = .git *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc
*.pyo

In my next post, I’ll explain how and why I’m using both Git and Subversion.