how to make subversion ignore files

to tell subversion to ignore files that exist in a version controlled directory, use the following:

  • $ svn propset svn:ignore filename dirname

for example, to ignore file foo in the current directory:

  • $ svn propset svn:ignore foo .

multiple files may be specified, but must be separated by a newline:

$ svn propset svn:ignore 'foo
> bar
> baz
> ' .

updated: Tue Jan 18 13:01:15 PST 2011