Discussion
The import command allows you to add a single file or a whole directory tree into a repository for the first time.

This situation however should be the exception, not the rule. Possible exceptions are – perhaps you are taking over a project that never used a repository before, or you are migrating to Subversion from another repository or you are getting dumps from a 3rd party vendor.

For a greenfield project you should never need to use the import command, your code should always be in a Subversion repository from the start of the project – NO EXCEPTIONS.

General Form

svn import [OPTIONS] [PATH] URL

If PATH is omitted, then the current local directory is used. Also keep in mind that if you do specify a PATH, no part of the path will be created in the repository. Only the contents of the directory (including sub-directories) specified by PATH will be added to the repository at the URL you supply.

Example Usage 1
To import the contents of the current local directory (including sub-directories) into Subversion:

svn import -m “Example Message” http://mydomain/test/exampleproject/trunk

Example Usage 2
To import the contents of a specific local directory (including sub-directories) into Subversion:

svn import -m “Example Message” /path/to/local/dir http://mydomain/test/exampleproject/trunk