Quick Hack: Recursively Remove .svn Directories

Posted on September 06, 2007

This snippet comes in handy when you’re copying folders between projects and inadvertently copy over .svn folders:

find . -type d -name .svn | xargs rm -rf

This will recursively find .svn directories in your current path and kill em dead!

And an alias for your ~/.bash_login file:

alias clean_svn="find . -type d -name .svn | xargs rm -rf"