[svn] How to ignore files and folders in batches

Table of contents

1. Through svn:ignore

1. Right click on the blank space of the folder, TortoiseSVN → Properties to open

2、New → Other 

 3. The value of the global-ignores attribute, that is, the files that need to be ignored and click OK

4. Cancel the ignored files, select Rmove, and submit to see the idea file

Two, svn:global-ignores

1. Right-click a file or directory that has not been added to version control, and select TortoiseSVN →Add to Ignore List→ .idea from the pop-up menu

2. Cancel Ignore Right mouse button TortoiseSVN →Remove from Ignore List→ .idea

3. Recovery


Two ways: the difference is as follows

svn:ignore: only valid for the current directory, not valid for subdirectories;
svn:global-ignores: will have a recursive effect on subdirectories;

1. Through svn:ignore

1. Right click on the blank space of the folder, TortoiseSVN → Properties to open

2、New → Other 

 3. The value of the global-ignores attribute, that is, the files that need to be ignored and click OK

 You can add files or folders or suffixes, etc.

4. Cancel the ignored files, select Rmove, and submit to see the idea file

 Discovered when submitting

 

Two, svn:global-ignores

1. Right-click a file or directory that has not been added to version control, and select TortoiseSVN →Add to Ignore List→ .idea from the pop-up menu

The meaning of the above is actually to see if your local folder has the green SVN icon. Otherwise, right-clicking will not appear Add to ignore list

 

2. Cancel Ignore Right mouse button TortoiseSVN →Remove from Ignore List→ .idea

3. Recovery

If you make a mistake, you can use Revert to restore to the server version

 

Guess you like

Origin blog.csdn.net/legend818/article/details/130146103