Currently, the more popular version control tools are SVN, git, and mercurial (Hg).
SVN is divided into the service side and the client, the server is Subversion, the client is TORTOISESVN.
Download the installation files for Windows version separately and install them according to the established installation steps.
1. Build repository:
Running the Subversion server requires first establishing a repository (Repository), which can be thought of as the database where the data resides on the server.
If you create a new folder under E, then right-click >> TortoiseSVN >> Create Repository here. The repository was created successfully.
2. Run SVN server subversion:
cmd into Windows pseudo DOS, start the server side with the following command: svnserve-d-R E:\svn_repository. The server can start successfully. If the command-line window is closed, the server is stopped.
3. Browse the items in the repository:
On the desktop anywhere in the right mouse button >> TortoiseSVN >> repo-browser, enter the SVN server address in the URL, format I for SVN://SVN host IP, click OK, You can browse items in the Subversion repository via TORTOISESVN.
4. Set Permissions:
By just operating you will find that as long as the user knows the SVN server project, you can directly operate (not only browse, but also delete) the server repository of the project, the actual process must have permission restrictions.
E:\svn_repository\conf Configure related files for permissions.
Open svnserve.conf, remove password-db = passwd authz-db = Authz in the [general] configuration item, note that shelf write indicates svnserve needs to read Authz and passwd files.
In security considerations, we tend to restrict access to anonymous users, so we can remove anon-access = read in front of "#" and modify the read parameter to none.
Anon-access = None
Open Authz, where you can add user groups and users, first add an Admin user group under [groups], and add users to it.
[Groups]
admin = qqyumidi, corn
Next, you specify the permissions that the user group has for the corresponding item in the repository, where you specify read and write permissions to project in the repository.
[/]
@admin = RW
* =
Where the/indicates that the Svnserve boot to the root directory, * = This statement is the right to specify another user group is null, is to prevent other user groups from having read rights to this file.
Open the passwd file and set the password for each user.
[Users]
Qqyumidi = Qqyumidi
Corn = Corn
Once again, browse the repository by Repo-browser, and find that you need to authenticate and enter your account password. At this point, the set permissions operation is complete.
5. Add the project version to the library:
The version of the project in the repository is still empty, and the new folder Project1 on the F drive, and add the file Readme.txt, right-click through import (import is from the current location to the server-side repository, export is the opposite), the current directory content is added to the repository.
Once added successfully, you can browse the content you just added in Repo-browser.
In addition, for the SVN single repository and multi-repository configuration may be caused by permissions issues, refer to the URL: http://doc.iusesvn.com/show-8-1.html
6. Use of other SVN commands.
These can refer to the SVN Handbook. Use it slowly and skillfully.
Some basic ideas of version model: http://www.subversion.org.cn/svnbook/1.4/svn.basic.vsn-models.html
Original address: http://www.itmmd.com/201410/88.html
The article is published by the Android Development and distribution, reproduced must be marked by the source. .
Windows Subversion and TORTOISESVN installation and use