Moving code to a different Subversion repository can be a pain in the ass at the best of times and having pesky .svn directories all over the places isn’t going to help things in the slightest!

Here is a easy way to recursively remove all of the .svn directories under the current one.
It only works under Linux and OS X (sorry windows guys, its time to move on anyway).

find . -iname ".svn" | xargs rm -rf

CAUTION::I take no responsibility for any loss or damage caused by using this! Use it at your own risk.

If anyone has any better ways to do it please let me know.


One Comment to “Delete .svn directories under OS X or Linux”  

  1. 1 Michael Buckbee

    You could also use the SVN export function to get a clean copy of the repository.

    Just a thought.

    Btw, thanks for writing the MySQLSlowQueryLogParser, it’s really helping me out.

    Thanks,

    Mike

Leave a Reply