Tags:

Ignore folder in SubVersion

Tuesday, February 22, 2011 EST

by: Eric Potvin

Tags: svn

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 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!

No comments!
Share this article:

Add a comment

* If your comment require a response from us, please make sure you leave your email

Captcha

* is required
The posting of advertisements, profanity, or personal attacks is prohibited.
Please review our terms of use

Latest Articles

Top Articles

Category List

Top of the page
Loading, please wait ...