Friday, March 21, 2008

Ignoring files in SVN

To ignore schema.rb:
  1. Open command line and from rails root, cd db
  2. svn propset svn:ignore schema.rb .

What this means is, ignore schema.rb in the current folder. The dot at the end denotes you are ignoring something in the current directory.

Another example. To ignore all the files in the log directory:
  1. Open command line and cd to rails root
  2. svn propset svn:ignore log .
One last example. To ignore folder1 and folder2:
  1. Open command line and cd to rails root
  2. svn propset svn:ignore folder1 folder2 .

Here is a nice article that explains these in details.
http://sdesmedt.wordpress.com/2006/12/10/how-to-make-subversion-ignore-files-and-folders/

No comments: