rss feed Twitter Page Facebook Page Github Page Stack Over Flow Page

Ignore folder in SubVersion

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