Thursday, March 22, 2007

Remove .svn directories from a project

SubversionSometimes when you work on a project or checkout the source from an existing project you get stuck with a lot of .svn directories. This is quite a hassle to remove if you want to hook the source up to another subversion repository. Removing the files manually is quite tedious since every single directory that is under version control has its own .svn directory. This quick one-liner can help you:

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


(this is no magic really, just writing it for myself to remember.)