Remove .svn folders Print

  • svn, subversion, clean, remove, delete, gurucms
  • 20

If you have just checkout Guru-host's CMS via subversion and want to clean up .svn folders please issue the following command inside the CMS directory assuming you are under Linux:

find . -name ".svn" -type d -exec rm -rf {} \;

The above command will recursively delete all .svn folders.

If you are under Windows follow the procedure below.

Create a text file with extension .reg with the following:

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\" \""

Then run it and right click on any folder with .svn folders inside.


Was this answer helpful?

« Back