SVN settings ignore file list

Source: Internet
Author: User
Tags svn client
SVN settings ignore file lists in the company Project version control is generally using centralized SVN, I am also familiar with the basic version management concepts and operations from the svn tool. However, as a Linux system and application developer, you naturally need to be familiar with the Git Distributed management tool. Now my project manager... SVN sets to ignore the 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.

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.