Skip to main content

how to ignore files and folders in subversion?

I always forget how to ignore files and folder if I'm adding subversion support to a project.
Why do I need it? For example, I do not want to add log files or customer related content (uploaded files etc.) into repository.

It's quite simple. In command line type following command:

svn propedit svn:ignore ./path/to/folder


It's not end of process. With this command you set up ignore property for given path / folder. It will open a text editor, where you can specify what exactly should be ignored.

With a * it will ignore all files and subfolder under specified folder.
It is possible to describe multiple patterns, just like that..

*.log
*.class
tmp_files.*

Go ahead and try it out!


Comments

Popular posts from this blog

brew, "pear install ...", Log for example..

I had issues while installing Log package from Pear. I used brew to get PHP (5.5.17) running on my MBP. So, back to the installing issue - if I tried to execute following command I got an error .. $ pear install Log No releases available for package "pear.php.net/Log" intallation failed So, failed. Then I tried to download the package using "pear download Log". Failed too. Solution was to go to Log package Pear page  and manually download the package. And in terminal you should executed the same installation command and point to downloaded file.. $ pear install /path/to/downloaded/Log-1.12.8.tar .. output skipped .. install ok: channel://pear.php.net/Log-1.12.8 Done. Anyway, there are probably other (better, more modern) logging libraries out there for PHP applications. Feel free to post your favorite one with short description to comments. Thanks in advance!