Set SVN to ignore files and folders (folders)

Source: Internet
Author: User
Tags tortoisesvn

In most projects you will always have files and folders that do not require version number control. This may include some compiler-generated files, *.obj,*.lst, or an output folder that can be used to store a running program. Only if you commit the changes, TortoiseSVN will display the version control file in the file list of the Submission dialog box. Of course you can close this display, just you may forget to add the new source file.

The best way to avoid a similar problem is to add a reference file to the project's ignore list. So they never appear in the Commit dialog box, and the real version of the control file is still listed.

1. Method One

In Eclipse, click menu Window---Preferences--ignored Resources

Click Add Pattern ... button to add the file or folder you want to ignore.

2. Method Two

In the Navigation view of Eclipse, select a file or folder that has not been added to the version number control, right--and Team--Join to Svn:ignore


3. Method Three

In Explorer, right-clicking a file or folder without adding a version number and selecting Tortoisesvn→add to Ignore List from the pop-up menu will show a submenu that agrees that you only select the file or all files with the same suffix.

If you want to remove one or more entries from the Ignore list, right-click the entries and select tortoisesvn→ to remove from the Ignore list.

4. Method Four

Another way to ignore files is to add these files to the Globalignore list. Their biggest difference is that the global ignore list is a client feature. It will work on all subversion projects. But it can only be used in pcclient.

Subversion's Ignore mode uses file matching, a technique that originally used a meta character as a wildcard in UNIX systems. The following characters have a special meaning:

    • * Matches no matter what string, contains empty string (no characters)
    • ? Match no matter what single character
    • [...] Match no matter what single character in square brackets [], within square brackets, a pair of characters are "-" delimited, matching whatever vocabulary (lexically) in the middle of their characters. For example [agm-p] matches no matter what the individual a,g,m,n,o or P.

Pattern matching is uppercase and lowercase sensitive, which can be problematic under the Windows platform. You can use paired characters to force ignoring uppercase and lowercase. For example, ignoring uppercase and lowercase letters that don't remember *.tmp, you can use a like *. [Tt] [Mm] [Pp] This mode.

Suppose you want an official definition of a matching rule. You can find it in the IEEE specification patternmatching notation about the shell command-line language.


Set SVN to ignore files and folders (folders)

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.