To ignore a file use the following command:
svn propset svn:ignore yourfile.ext yourdirectory
So, to ignore files in SVN you should set svn:ignore property of the directory that holds the file. For example in my case the command was:
svn propset svn:ignore database.php ./application/settings/
Have in mind that once the file is commited to the version control the ignoring will not work. If you run
you will see that your file is still there. You should remove it from the repository with svn delete. I.e. something like that:
(notice the usage of --force parameter)
svn delete --force application/settings/database.php
This of course leads to more problems, because all the other developers will run svn update and their local copy of the file will be deleted. So, they should make a backup of the file and restore it later.
To ignore a whole directory use
If the folder is in the root of your project use
svn propset svn:ignore yourdirectory parentdirectory
svn propset svn:ignore yourdirectory .