DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Strip .SVN Folders From A Subversion Working Copy

12.11.2008
| 8355 views |
  • submit to reddit
        // Find and remove all .svn folders. (useful if you've lost the original repo and need to trash the .svn meta data.

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

Comments

Yale Kaul replied on Sun, 2006/03/26 - 3:10am

I use this technique 'cause it's a little easier for me to remember: rm -rf $(find . -name .svn)