delete all .svn folders

    At work, I want to migrate a project to another svn directory. When I encounter a problem, I need to delete the original .svn first, then add it to the new svn, and start to delete it manually, but I find it is too time-consuming and labor-intensive. I searched for several deletion methods on the Internet, tried them all by myself, summed it up, and wrote a memo.

 

1. Run the following command in the Dos window

 

     Dos code
for /r <path to your project> %i in (.svn) do rd /s /q %i

2. Add the "Delete SVN Folders" action to the right-click menu

    Create a text file with a random name and a .reg suffix with the following  Text code :

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 saving, double-click the reg file. After success, right-click on each folder will have a "Delete SVN Folders" option, click this option, you can delete all the .svn folders under this folder.

Guess you like

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