Configure Subversion Client to Ignore Certain Files

Posted November 17, 2006 by johnnythawte in Computer programming

By default, Subversion shows unversioned files and folders when running the svn status command. This tech-recipe will demonstrate you can ignore files you do not want in source control.


In your subversion project directory, you will use the following command format:

svn propset svn:ignore file1 file2 directory1

Note the following example:
svn propset svn:ignore bin obj *.exe

This command will ignore the bin directory, the obj directory, and any file with the .exe extension. If you just wanted to ignore a single file, you could specify just that one on the command line as follows:
svn propset svn:ignore testscript.bat

This command would ignore just the testscript.bat file from source control.

The Conversation

Follow the reactions below and share your own thoughts.