Exporting an individual directory from a repository

If you find yourself needing to export either an individual directory from a repos (say, as part of placing a project under version control) SVN’s export command is the tool for the job.

Here’s the standard export syntax:

svn export /path/to/repos /target/directory

If /target/directory doesn’t exist, SVN, ever accommodating, will create it for you before filling it with the non-version-controlled contents of the repos.

To export an individual directory from a repos, just add its name to the repos path:

svn export /path/to/repos/individual_directory /target/directory