1. Download svn Server; add svn sever installation directory \ Bin directory to path directory, My Computer-"properties-" advanced-"environment variable-" path
2. Client Installation tortorise SVN
3. Set up SVN repository, is the project code warehouse, all subsequent synchronization of the code on the server stored in this warehouse
Two ways:
1 on the server side start-> run input cmd-> svnadmin create E:\svndemo\repository
This path is the path to the software warehouse on your server.
2 use TORTOISESVN, in the directory E:\svndemo\repository "right button->tortoisesvn->createrepositoryhere ..."
4. SVN User access permission configuration
The simplest permission configuration, into the Software warehouse (E:\svndemo\repository), into the Conf directory svnserve.conf:
[General]
### These options control access to the repository for unauthenticated
### and Authenticated users. Valid values are "write", "read",
### and "None". The sample settings below are the defaults.
Anon-access = Read
anon-access = Write
5. Add SVN Server to service
Note the following is the Windows cmd command, the command parameters have spaces, pay attention to the space, especially sc create "=" after the space.
To create a service:
SC create "SVND" binpath= "\" "C:\Program files\subversion\bin\svnserve.exe\"--service--root E:\svndemo\repository " start= demand Displayname= "Svndserver"
The directory after REM--root is the software warehouse path in the server
Remove the service
SC Delete "SVND"
Start the service
sc start "SVND"
Stop the Service
sc stop "SVND"
6. Use TortoiseSVN to upload code to svnserver, download code, update code operation
Use TORTOISESVN on the server:
Update to latest code: Enter a file, right-click a blank place, select SVN Checkout, click OK in the URL of Repository input svn://localhost/, OK.
Upload code: Add a file to the directory, right-click a blank place, select SVN Commit, hook up all the code you want to upload, and click OK.
When you do this on the client machine, change the svn://localhost/to svn://ip/