SVN settings ignore file list

Source: Internet
Author: User
Tags svn client

SVN settings ignore file list

Version Control for projects in the company generally uses centralized SVN. I am also familiar with basic version management concepts and operations from svn tools. However, as a Linux System and Application Developer, you naturally need to be familiar with the Git distributed management tool. Currently, personal project management uses git for version control and is familiar with git operations. svn generally uses image tools in Windows, the command line of svn is a little unfamiliar. In the git tool, you only need to modify. you can create a gitignore file, which is very simple and an example. the gitignore file is as follows: the filter file mode is separated by rows. 01
*. O
02
*. Lo
03
*. La
04
*. Gcda
05
*. Gcno
06
Aclocal. m4
07
Autom4te. cache
08
Build
09
Compile
10
Config. guess
11
Config. h
12
Config. h. in
13
Config. h. in ~
14
Config. log
15
Config. status
16
Config. sub
17
Configure
18
Depcomp
19
. Deps
20
Install-sh
21
. Libs
22
Libtool wants to ignore some temporary project development files when using svn today. It doesn't know how to do it at once. It's not difficult to find out after searching and practicing on the Internet. Record it here. The configuration methods are as follows:

Svn command line configuration in Linux

1. Modify the attributes of the version library.
$ Svn propedit svn: ignore dir
Dir is the directory where you want to set the list of files to be filtered. After executing the command, the editing interface will appear. Separate the files you want to filter by spaces (usually using wildcards, save and exit. This attribute is modified for the version library. Therefore, you need to submit this modification. Svn: ignore is a svn parameter.
Note: This setting cannot be recursive, that is, if there are subdirectories in the dir directory, it is set separately.
2. svn client Configuration
Modify the configuration file of the svn command. Enter the personal user directory
$ Vim. subversion/config
Find the line containing [miscellany], uncomment, edit the line containing global-ignores, uncomment, and add the wildcard that needs to be filtered out. As shown in the following figure: Note that there cannot be spaces at the beginning; otherwise, svn will report an error.
Global-ignores = *. so *. a *. o *. lo *. la. *. rej *. rej .*~ *~ . # *. DS_Store
This configuration changes the client and has no effect on the version library. At the same time, this configuration is global and applicable to all svn management projects on the local machine.
Tortoise SVN settings in Windows
1. Modify version library attributes on Tortoise SVN
Right-click the svn management project directory, that is, you want to set the directory for filtering the file list, click Tortoise SVN-> properties-> New, select svn: ignore from the drop-down list, then, edit the filter file list in the text box. To recursively apply this attribute, select the check box in the lower left corner to apply this attribute recursively. :



2. Configure the Tortoise SVN client Tool
This configuration has nothing to do with the svn version library. Right-click any directory, choose Tortoise SVN> Settings> General settings, and add the ignore file list to the global ignore style. As shown in:

After being familiar with the SVN ignore file configuration, I wonder if there are two types of ignore configurations in git: configuration in the version library and client configuration. The. gitignore file in git can obviously be configured with the version library. Everyone can use the same configuration through checkout.

Related Article

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.