Ignore folder in SubVersion

Posted on Monday February 21, 2011 / by Eric Potvin

If you use a template engine, such as Smarty, you might find annoying to delete the compiled files every time you check which files are modified.

eric@unbuntu:/var/www/my_project/trunk$ svn status
M      template/index.html
?      template/templates_c/%%3C^3C7^3C7803F8%%index.html.php

To avoid that situation, you simply need to ignore the folder in your repository by using the following command:

svn propset svn:ignore "*" template/templates_c

Next time you will perform an svn statusthe compiled templates will be ignored.

eric@unbuntu:/var/www/my_project/trunk$ svn status
M      template/index.html