How to: Ignore all files in a directory (folder) with subversion
The ignore command for subversion can be confusing. Ignoring certain files types is pretty easy:
$ svn propset svn:ignore "*.log" log
but ignoring folders is tricky and was giving me headaches for a while. I was using file_column (in Rails) to save uploaded photos and whenever I did a svn status I would get a list of all my test uploads:
? public/photo/filename/106
? public/photo/filename/116
? public/photo/filename/126
? public/photo/filename/117
? public/photo/filename/127
? public/photo/filename/128
? public/photo/filename/129
Which made it hard to find files I wanted to add. Here’s how to ignore a directory:
svn propset svn:ignore "*" public/photo/
This entry was posted in svn. Bookmark the
permalink. or leave a trackback:
Trackback URL.
3 Comments
Thank you very much. You made my day
Thanks buddy.. it help me lot.
Thanks! I’ve been trying to do this for ages and this is the first thing I’ve tried that actually worked
!