Case – Suppose there is a project or any directory set up in svn with a repo url pointing to SVN server. In case just to take a back up in somewhere else or to give the project folder to some other person, generally everyone just zip the complete folder and move to where needed..
But in that case all .svn folders exist in the folder, which contains all the mapping to the actual SVN server. So other person can commit files from the received folder even, which is unwanted.
Moto – remove the all .SVN folders to delete the mapping. But, .SVN folder present in all of the sub directories also, so in a big folder structure its always difficult to remove those manually.
This can be also done simply by adding one registry file to the system, details below.
Copy the code below and paste it into your favorite text editor.
Save the file as anyname.reg (the .reg is the important part).
Double-click the .reg file you just created.
Confirm that you want to update your registry.
Windows Registry Editor Version 5.00
@="Delete SVN Folders"
@="cmd.exe /c \"TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \"%1\" %%f IN (.svn _svn) DO RD /s /q \"%%f\" \""
5. After successfully adding the registry to the system, right click on the folder where you want to remove the .SVN files. There you would get an extra option, “Delete svn folders”, click there to remove all mappings.