http://www.e-moxie.com/resources/tips/tip-copy-folder-without-hidden-svn/

This provides a real time saver and an issue that I’ve been wrestling with recently.

A tip for MAC/Linux users using SVN.

One of the issues that I was running into when developing websites using SVN was that I wanted to copy an existing folder from one site to another one but when copying the folders would continue to have the hidden .svn folders. For all that use SVN you know what I mean.

Normally what I did was just copy the folder and then go in and manually remove all of the hidden .svn folders. That was okay for a folder or two, but when I needed to copy a folder which contained several sub folders it became a complete pain. After a little bit of searching I found a solution for those on a MAC or using Linux.

Open up a terminal and type the following.

rsync -aC –exclude .svn TARGET FOLDER DESTINATION FOLDER

Note: there are two hyphens before exclude. (That tripped me up for a bit).

Hope that helps someone.