R – How to make SVN ignore a folder

ignoresvnunix

I want to make SVN ignore everything that is in my wordpress directory. It bring me nothing but headaches because of auto updates to plugins etc.

When I…

svn propedit svn:ignore ./blog

It tells me…

svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR is set, and no 'editor-cmd' run-time configuration option was found

So I…

[phil@sessions www]$ export SVN_EDITOR=emacs
[phil@sessions www]$ svn propedit svn:ignore ./blog

But I don't know what to put in here to make it ignore.

Best Answer

A lot of other questions have covered this ground already (search "[svn] ignore"; too lazy to link them all), but the key thing that isn't emphasized enough in the docs is that svn:ignore only applies to items that do not exist in the head version of the repo. So if you want svn:ignore to apply to something that you've already (accidentally) checked in, you need to svn delete the item first, to get it out of the repo. See if that fixes your problem.