Configure Subversion Client to Ignore Certain Files

Contributor Icon Contributed by johnnythawte  
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.

 

No Comments -


No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment -