Create a Repository
To create an empty repository:
svnadmin create /path/to/repository
Once the repository is created you need to import data. Typically, svn repositories are broken into 3 directories, /trunk, /branches, and /tags with the trunk containing your stable release. This set up needs to be created before you import your files to the svn repository.
To import data into your repository:
svn import datadirectory file:///path/to/repository -m "First Import"
Checkout a Repository
To check out a local repository:
svn co file:///path/to/repository/trunk/ localdir
To check out over ssh:
svn co svn+ssh://your.remote-server.com/home/svn/test/trunk/ localdir
You can replace the localdir with . if you’re in the code root directory.