[SVN] SVN ignores specified type files or specified name folders

scenes to be used:

In Unity development, there are some folders that are not necessary to upload, such as Library obj Temp .csproj .sln .vs files and folders, because these files will be recompiled after they are imported into Unity.
The only folders that are really needed are Assets and ProjectSettings.
So how do we upload only the Assets and ProjectSettings folders to SVN?

Solution:

In the version of the file has SVN folder, right - TortoiseSVN - Settings - Edit
Insert picture description here
in the open configuration file, locate the global ignore global-ignores
Insert picture description here
the following line plus
global-ignores = and then keep up with the file type and file name that you want to ignore the back of
such : .Vs Library obj Temp * .csproj * .sln * .userprefs
Insert picture description here
Insert picture description here
Note: No need to add a comment character #, use a space to distinguish between each ignored item
After editing, ctrl + s to save, close, and then click OK.

Authentication method

Again, in the folder with the SVN version history and the specified file type and file name to be ignored, right-click SVN to submit and check whether the ignored file is still in the open file list.

Insert picture description here
Before adding the global ignore code:
Insert picture description here
after adding:
Insert picture description here
no more

Published 226 original articles · praised 509 · 530,000 views

Guess you like

Origin blog.csdn.net/q764424567/article/details/103573533
Recommended