SVN ignores files but does not delete files

Source: Internet
Author: User

Svnignore some unnecessary files but do not delete

If There are some files in the SVN repository that you do not want to be submitted by others, how can I ignore the changes to this file without deleting the file?

After finding a bunch of solutions, I came to the following conclusions

Remove version control for files to be ignored

There are two options based on this idea

1The files exist in another repository.

There is a warehouse on the server, B, the file we want to ignore is called C.

We put the main file in warehouse A, other files that do not need to be submitted in warehouse B,

Download the files of the two warehouses from the server, respectively, in the Aa,bb folder.

Copy the C file under the BB folder to the AA folder

Adding the C file to the Ignore list is OK, because the version information for the C file is in the BB folder

Hidden files. SVN, we moved the C to the AA folder, C in AA has lost the SVN version control, and we in AA submitted the server warehouse address is warehouse a address, warehouse A does not have this file, there is no delete this said;

The main purpose of this example is to get the ignored files out of version control, so we can find a better way.

2 files that will be ignored are all in a new folder

For example we do not want to submit the Bin folder

Place the Bin folder in the pocbin folder

Download the project and put the files in the correct directory.

The reverse is also possible.

After the file has been downloaded from the server, create a new folder in the saved directory, and the files you want to ignore are placed in the new folder and the folder is ignored
This operation is a bit cumbersome, but it also meets the requirements of the title. If you have any better ways to welcome the guidance ~!

SVN ignores files but does not delete files

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.