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