Configure Subversion Client to Ignore Certain Files

Contributor Icon Contributed by johnnythawte Date Icon November 17, 2006  
Tag Icon Tagged: Computer programming

Subversion by default shows unversioned files and folders when running the svn status command. This recipe shows you how to ignore files you don’t want in source control.


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

svn propset svn:ignore file1 file2 directory1

For 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 can specify just that one on the command line:
svn propset svn:ignore testscript.bat

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

Previous recipe | Next recipe |
 

 
close Reblog this comment
blog comments powered by Disqus