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

How to run Laravel and Angular app on the same development host?

I had to build a quick demo using Angular . I decided to use Laravel as back end for my app. Setup Setup went easy. I used  angular2-seed for Angular. Cloned it using git. $ git clone https://github.com/angular/angular2-seed.git my-demo-app-gui With command "npm start" after "npm install" in the "my-demo-app-gui" folder I got my angular application running locally - http://localhost:3000. To create a new Laravel project I used following command line command: "laravel new my-demo-app-web" to create PHP server side for my project. In folder I just created, I executed following command: "php -S localhost:8000 -t public" to start local back end server -  http://localhost:8000. So far everything went smoothly. So I started build something amazing, like script of Laravel is suggesting before it is finishing its job. Since the goal for me was to build a web application that will get its data from the back end of the same hos...