Tech Blog

Remove svn directories using find command on linux

Posted At : September 29, 2010 7:17 AM 1 Comments

A quick tip on how to remove .svn directories if you accidentally copy them using a folder copy.

find . -name '.svn' -exec rm -rf {} \;

If you copy code from on svn codebase to another then you can often have hidden .svn directories copied also, which will cause svn operations to fail.

Running the command above will fix it up by finding them all and deleting them.

1 Comments

Giulian Drimba 9/29/10 2:38 PM

Very useful, I was searching this some days ago.

Thanks for posting.