Alex Rivera | Logout

SVN Ignore - how to ignore the content of a directory

Asked 2011-11-08T17:19:10.033
24

I have a large project on a live server which I would like to commit to an svn repo. I have added all files and directories to the repository using svn add.

The problem is that there is a folder-structure that I want to commit but without its content. The folder name is:

/home/myproject/media/

It contains various folders such as images, adverts news, home-images, etc. I would like to commit these folders but not their content. I have tried doing the following:

cd /home/myproject/media/
svn propedit svn:ignore ./homeimages/
{{The text editor comes up}}
I entered * and saved

but when I do

svn stat

the files under homeimages are still listed in the repository. How can I resolve this issue?

svn
Edit
Report

1 Answer

1

I use SVN client (Tortoise SVN) and it has ignore-on-commit functionality. Try use that.

answered 2011-11-08T19:22:48.580

Your Answer