"Turn" delete the svn version information in the folder

Most of the solutions provided by Baidu search are to create a file delete-svn-folders.reg with the following contents:

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN]@=”Delete SVN Folders”
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN\command]
@=”cmd.exe /c \”TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \”%1\” %%f IN (.svn) DO RD /s /q \”%%f\” \""

 

 

After executing the addition to the registry, right-click the folder to be deleted from svn, and the "Delete SVN Folders" option will be displayed, click execute (I did not succeed, and the error was reported that the parameters were incorrect and could not be deleted)

 

Another method: cyclically delete all SVN files in the current directory and subdirectories

Create a bat file with the following content:

@echo on
color 2f
mode with: cols=80 lines=25
@REM
@echo is cleaning SVN files, please wait...
@rem loop deletes all SVN files in the current directory and subdirectories
@rem for /r . %%a in (.) do @if exist "%%a\.svn" @echo "%%a\.svn"
@for /r . %%a in (.) do @if exist "%%a\.svn" rd /s /q "%%a\.svn"
@echo Cleaned up! ! !
@pause

 

After saving, copy it to the root directory where the svn information is to be deleted, and delete it after execution (this method is successful, the trouble is that it must be copied to the folder to be deleted every time)

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326899161&siteId=291194637