Chris Tate-Davies

An archive of helpful tit bits of information for development, and probably some stuff that is incomplete, wrong or boring…

Remove svn folders from Ubuntu

Posted on | April 9, 2010 | No Comments

When backing up a source code working copy, you don’t always want all the little .svn folders everywhere.

You can “export” the working copy, or if you forgot, you have remove them all.

Change the the folder containing the working copy (this is very important*)

cd /home/username/www/sitename/

And then remove them all, recursively with this command:

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

This will find all .svn files/folders in the current folder, and remove them and everything in them.

*if you do not ensure you are in the right folder, this command will remove all recursive folders, so if you are in the web root, it will remove all the svn information from all your sites… This is very important (that’s twice I’ve said that, so it must be)

 

Comments

Leave a Reply