Ignore files and directories in Subversion

Source: Internet
Author: User

If you work with version control systems like subversion (SVN) I'm sure you can relate to the problem of having test files show up when you try to Commit Changes. It is actually pretty simple
To tell subversion ignore directories or specific files.

You can do this by editing the svn property calledsvn:ignoreAs
Follows:

svn propedit svn:ignore ./some_path

When you run that command SVN will open your text editor, and this is where you can define patterns or specific files to ignore. If you place*In
The property file, it will ignore all files in the directory you specified./some_path

*

Thesvn:ignoreProperty as far as I know only supports
The*As a wildcard. It doesn' t support regular expressions, or anything fancy like that.

Having the wildcard is quite handy though, because you can do things like this:

*.classtest_*

Which will ignore all your files that end in.classOr
Any file that startstest_.

In Web Application Development I find it handy to ignore the contents of the directory where I store uploaded images, or files.

What do you ignore?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.