Ignore folder in SubVersion
Tuesday, February 22, 2011 EST
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.phpTo 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 status" the compiled templates will be ignored.
eric@unbuntu:/var/www/my_project/trunk$ svn status M template/index.html
Be the first to reply!
Share this article: