Removing .svn files from projects

There are times when you want to remove .svn directories from your folder, usually when you are unable to export from the repository and have to copy files onto a staging or live server.

This wee command is a saving grace in these instances.

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

Alternatively if you are looking to take the current project directory and move it via tar, because SVN Export isn't viable you can use the following to ensure you don't double the size of your tar.

tar -czf eif2010b.tgz --exclude=".svn" public_html/

Recommended reading

Design by Jon