Jul
24

Recursively delete .svn files

By Sam  //  Off Topic  //  No Comments

I’m a heavy user of subversion (SVN) for version control and sometimes when I start a new project I begin by copying the structure of an older one.

As everything is under version control I need to then delete all the .svn files from every folder in that project so that I can start afresh.

To do that I use the command:

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

It then looks through every folder and removes any folder or file called .svn

Leave a comment

Sponsored links