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)

By admin

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.