In order to begin using SVN, first a new repository needs to be created. SVN has no way to determine the difference between projects; it is up to the user to administer the file tree and place the project in separate directories as they prefer. Use the following commands to create the repository:
# mkdir /var/svn
# svnadmin create /var/svn/repos
# ls /var/svn/repos/
conf db format hooks locks README.txt
This command will create the new directory /var/svn/repos with the required database files.
The SVN repository is accessed with a URL. Usually these use the standard syntax of http:// but it is not limited by this. It also accepts the following URL forms:
- file:///
Direct repository access (on local disk)
- http://
Access with WebDAV protocol to Subversion-aware Apache server
- https://
Same as http:// but with SSL encryption
- svn://
Access via custom protocol to an svnserver server
- svn+ssh://
Same as svn:// but through an SSH tunnel.
If the URL contains spaces place quotation marks around it to ensure the shell treats it as a single argument. Otherwise the URL will be invalid.