Clean those .SVN folders from your website directory
Posted on Friday, July 10th (3885 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 humble designer/developer who makes stuff for screens of all shapes and sizes. He is currently the lead UI/UX Architect at MScience, LLC, where he works to create simple experiences on top of large rich datasets for their customers and clients.