View Tutorial Metadata Edit Content Revision History Add to Watchlist Add New Tutorial Ignore files in a Subversion repository in Linux

Ignore files in a Subversion repository in Linux on commit

Ignoring files on commit in a Subversion repository

If you don't have a UI front-end to subversion, here's how to do it in the command line.

First go to the directory where you want to add the ignore rules.

cd ~/my_subversion_checkout/var/

Then type

svn propedit svn:ignore

The default editor will be brought up. Type each ignore rule on a new line. For example, the ignore rules could look like:

session*
php_errors.log

Subversion will ignore the files that match the patterns when a new commit will be made. But if files already exist in the repository matching the patterns, they won't be ignored, unless you delete them from version control.

Finally, save and then quit. The ignore properties are not saved to the repository, they must be configured on each client.

Displaying all the ignore rules

You may want sometime to see all the ignore rules that are in place in your repository. In this case, go to the repository root and type:

svn propget svn:ignore -R

This will recursively search for rules in the current directory and display them on screen.

Only plain text supported.

Optional

Required - will be kept private

Optional

 
 

Rating: (0+, 0-) In: Linux, Source Code Management, Subversion