In most projects there are going to be files that you wish to ignore in version control. These could be temporary files, log or debug files, and so forth. These are files that you can safely ignore when executing commands such as svn commit and svn st. The following shows how to configure your svn client to ignore particular files in your working copy.

svn propedit svn:ignore /path/with/files/to/ignore/

svn opens up your text editor of choice

Use file patterns to indicate which files to ignore from version control. Each pattern goes on a new line. e.g.

log_12*.log
*.tmp

Save your file and exit

Now whenever you perform commands like svn st or svn commit, svn will ignore files with the patterns you specified in the directories that you specified.

Share
Share →

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>