Login
Remove all .svn in directory

Working a lot with SVN repositories, managing clients servers after crashes and alike I came tot he situation where I needed to clean up the code base from the .svn folders to import them back into the newly created repositories. It is simple once you know how to use the command line tools on Linux.

Below is an example on how to remove all .svn folders and files inside those hidden folders on Linux (dare say UNIX like) operating systems:
Code:
  1. find . -name ".svn" -exec rm -rf {} \;
 
Yes it is that simple... What it does is: searches from the current directory you are in (current directory you are in is marked as a dot .) for the files and folders that are ".svn" and exectes the rm -rf (force remove) on each of the find result.

Good luck!