Posted by Vince Wadhwani on Jun 05, 2008

There's no doubt that sometimes mistakes happen. If you make a terrible terrible subversion error and need to start over, rather than check in your code again, use this command to erase all the hidden .svn entries:

find . -type d -name '.svn' -print0 | xargs -0 rm -rdf

It's not perfect, but if svn export doesn't work and you've got no other choice the above command will help you out in a pinch.