Thursday, August 14, 2008

Recursively remove .svn directories

It seems I regularly need to remove all the .svn directories from a directory structure. It would be nice if this function to disconnect a directory structure was built into svn, but since it is not, I usually use this command from the root of the project directory structure:

rm -rf `find . -name .svn`