How to remove .svn folder

Windows:

Save the following to the folder to clean to a filename with a .cmd extension (cleansvn.cmd).  After that issue the command, eg., C:\www>cleansvn

for /f "tokens=* delims=" %%i in ('dir /s /b /a:d *svn') do ( rd /s /q "%%i" )

Linux: 

Cleaning a svn folder:

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

Using svn export:
Export from your working copy (doesn’t print every file and directory):

$ svn export a-wc my-export
Export complete.

Export directly from the repository (prints every file and directory):

$ svn export file:///var/svn/repos my-export
A my-export/test
A my-export/quiz

Exported revision 15.

Leave a comment