This article reprinted to http://blog.sina.com.cn/s/blog_5e42f31a010156z4.html
1. Locate the appropriate directory and create a new repository directory: mkdir SVN
To create a repository: Svnadmin create/users/qst/svn/repository
2. Edit permissions, configure SVN permissions, where the configuration file is located in the directory:/users/qst/svn/repository/conf
There are three configuration files in this directory: authz/passwd/svnserve.conf
1) Modify Authz, vi Authz, such as:
2) Modify Passwd,vi passwd, such as
3) Modify Svnserve.conf,vi svnserve.conf, such as:
3. Start the server, if there is no prompt, the general start success
Svnserve-d-r/users/qst/svn/repository/
Use the following command to see if successful PS Aux|grep SVN is started
Note: SVN can be divided into single or multiple repositories, assuming:
Repository directory is/DATA/SVNDATA/REPOS1
Start the program if: svnserve-d-r/data/svndata/repos1
This means that you are currently SVN only for REPOS1 this repository, the client access directly svn://ip/on, not with the directory
Start the program if: svnserve-d-r/data/svndata/
This means that your current SVN can be run in multiple repositories, and client access needs to be added SVN://IP/REPOS1 to access the REPOS1 repository
4. Import project or file use commands to the SVN server
SVN import Real Presence source path SVN://IP address/svn/respository--username=zhangsan-m '--Initialize project--'
Whatever you want to write, do not write it.
You will be prompted to enter a password, enter the password you set to
SVN import/users/qst/desktop/123 svn://192.168.100.154/svn/repository--username=xx-m ' initial import '
Such as:
5. Export the project in any directory where the SVN project has not been exported and execute the SVN checkout SVN://IP address/svn/repository
Note: This path can be specified at any of the following levels.
There is a problem: checkout checked out to which directory?
The above statement is checked out to/users/qst/svn/repository/repository
SVN server configuration for Mac