Clean those .SVN folders from your website directory
Posted on Friday, July 10th (3175 days ago)
I develop websites using Coda as my editor.
Recently, Coda added subversion as part of the software which allows me to to use all the benefits it offers, like starting sites with a nice code base each time. One problem with the subversion integration is during my initial code upload to the production server. When I upload the site files, the upload includes all the “.svn” folders which adds a huge amount to both the size of the upload and the time needed to complete it. While I haven’t found a way around that just yet, I do have a solution for cleaning up all the unnecessary “.svn” folders from the production server - in bash scripting:
rm -rf `find . -type d -name .svn`
Just go to the root of your website in your terminal, then fire off this command. Voila! All those pesky folders gone!
About Joseph R. B. Taylor
Joseph R. B. Taylor is a designer/developer who makes stuff for screens of all shapes and sizes. He currently works at Edvisors, Inc. where he creates screen-based experiences for used by millions of college students every year.