How to ignore files on command line with subversion.
I’ve had to google this so many times I thought I would post it.
svn propedit svn:ignore ./some_path
You need this if you want to ignore more than one pattern.
Will open a text editor where you can add multiple entries.
You can also do:
svn propset svn:ignore -F file_to_ignore ./some_path
The -F means ignore a file.
for example:
For directory target
svn propset svn:ignore target .
ignores the target directory in the current dir.
You have to remember to commit the directory you have just set the property on:
svn ci -m "Setting the ignore property to ignore target directory" -N .
The -N means non-recursive so just commit the current directory.