| Subcribe via RSS

Stripping .svn files

November 1st, 2008 | No Comments | Posted in My Projects, Ruby on Rails, Technology

If you want to submit a project to a new SVN repository, you may need to strip all the .svn files from it before adding it.

If you are running a unix based system (including OS X), you can do this with the following command (be aware that you cannot undo this—if in doubt, don’t do it) run from the top of your project directory:

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

You will now be free to add the code to a new repository.