Recursively Removing .svn

by Aleksandar Micovic

I recently started working on an assignment that required me to copy some code from another repository. I did just that, but had a little trouble trying to add the new stuff to my new repository. After about a minute or two I realized that all of the newly copied old code still had the hidden folder .svn…in every directory. I was copying an OS kernel, so there were quite a bit of these .svns sticking around. They needed to go if I was going to add any of my code into my repository.

How did I remove them? Like this.

find . -name .svn -print0 | xargs -0 rm -rf