1. Download the necessary installation package
Apache http://httpd.apache.org/download.cgi#apache20
Subversion for Windows http://sourceforge.net/projects/win32svn/files/latest/download
TortoiseSVN-1.7.4.22459-win32-svn-1.7.2.msi
If you want to use it on vs, install the AnkhSvn-2.3.10744.msi on
2. Create a version Library
Create a new Gaga folder on drive D, right-click Create Repository
3. Configure permissions
Find svnserve. conf In the conf folder of Gaga and
# Anon-access = read
# Auth-access = write
# Password-DB = passwd
And remove the comment #. Note that after the comment is removed, do not leave spaces and keep the top grid of each line. Remember !!!
Configure the access user list, user name and password
In notepad, open the file passwd in the directory and remove the # Harry = harryssecret, # Sally = sallyssecret comment #. You agree to note that each line requires a top grid and there cannot be spaces at the beginning.
Note: Harry = harryssecret indicates: User Name = password. You can also add it by yourself, for example, Gary = Gary.
The best effect is as follows:
### Thisfileisanexamplepasswordfileforsvnserve.
### Itsformatissimilartothatofsvnserve. conf. asshowninthe
### Examplebelowitcontainsonesectionlabelled [users].
### Thenameandpasswordforeachuserfollow, oneaccountperline.
[Users]
Stone = stone123
Rock = rock123
4. Start Subversion
Run the command svnserve-D-r d: \ Gaga. The Subversion server is assumed to be ready.
5. Add a version control file to the container
Right-click any location on the hard disk, right-click the parent folder of the file to be uploaded, and choose tortoisesvn-> Import... To test the function, create the folder D: \ haha, and put the file test.docin to upload test.txt to SVN. Right-click importfiles, tortoisesvn-> Import ..., Enter the container URL: SVN: // localhost/Gaga and enter the username and password: Upload the test.txt file to the svn container.
Addresses starting with SVN on the Intranet, which are searched by HTTP on the Internet