Skip to Content Skip to Menu

SVN Ignore directories recursively

Recently needed to ignore a set of directories in SVN so that all the uploads weren't being saved into the repository.

svn -R propset svn:ignore '*' path/to/folder

So running through the code "-R" is the recursive flag and is case sensitive! "propset" is setting a property, "svn:ignore" is the property, "*" is everything in the directory while the "path/to/folder" is obviously the path to the folder you would like to ignore.

In this example:

  • path/to/folder - this would be ignored
  • path/to/folder/another_folder/ - this would be ignored
  • path/to/directory - would not be ignored because it is not in the path/to/folder