How to remove all subversion .svn files and folders

Recently my cornerstone (a subversion client) got corrupted and I couldn‘t checkout my working copy. So I had to remove all of the .svn folders and files by hand. A very labour-intensive job if your website consists of about 3000 files.

Terminal to the rescue:

just go to your folder, containing all the subversion files, in the terminal and type in:

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

This will search for all the .svn folders and remove them.

Comments

Posted on 03-03 by Sean Nieuwoudt

awesome thanks dude, cant tell you how many times i've had to remove the .svn directories by hand

Leave a comment