Linux under SVN commit ignores certain files, directories (Ignore properties

Source: Internet
Author: User
Tags commit config php file svn

SVN is also a directory synchronization we can use it to do version control, below to see about the Linux SVN submission ignores some files, directories (ignore attributes), I hope the example will help you.

In the project, some files are not required to submit local to the SVN warehouse, such as the config.php file, especially the definition of absolute path, or cache directory, image directory, etc., so for convenience, every time you submit SVN, you need to ignore these files, directories, Avoiding inadvertent submission causes other members of the team to modify their local version.

Linux under the SVN propedit svn:ignore command can be edited to ignore files, directory listings, in the warehouse execution, if my warehouse is wudiweb.com:

Cd/data/www/www.111cn.net # SVN copy
Export Svn_editor=vim # definition SVN EDITOR for vim edit
SVN propedit Svn:ignore. # this last. #, represents the current directory
Vim editor will be opened, you need to fill in the need to ignore the submission of files, directories, such as here to fill in:
includes/config.php # includes/config.php file for the current directory relative path
Images # Picture Catalogue
Cache # Cached Directory

After adding, save the file and quit Vim.

The files and directories mentioned above will be automatically ignored at the time of submission:
SVN commit. -M "Test ignores files, directories"
SVN status
The next time you want to add an ignored file, after executing the above command, will automatically open vim, continue to add the list to the last side

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.