removing .SVN directories recursively

I have been working a lot lately using SubVersion ‘s to maintain all the projects that I and some times others are all working on.

A firm that I contract to has recently set up a SVN Server on a dedicated machine with ActiveCollab and Versions to manage our projects. This means that we have versions and versions of manageable projects.

Today, I pulled down a part of a project to use inside another project, but the directories still contained the .svn data from the original project.

So here is a quick command to strip out all the .svn data from a project.

rm -rf `find . -name .svn`
This entry was posted in apple, Code, Technology, work and tagged , , , , , , . Bookmark the permalink.

2 Responses to removing .SVN directories recursively

  1. Daniel Wood says:

    A better way is to svn export the project rather than simply copying the working copy. This will result in a clean structre without the .svn directories.

  2. Sheldon says:

    That’s true,

    You can also use the shell command SVN CO

    eg ( for my server that uses SSH );

    svn co svn+ssh://svu_username@svn.server.co.nz/svn_dump_name

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">