1, install SVN server
Install subversion directly with Apt-get or Yum (you can, of course, go to the official download installation yourself)
sudo apt-get install subversion
2, create a version library
Svnadmin Create/home/myrepos //Here's the file directory set yourself casually
3, Configuration Svnserve
When the above repository/home/myrepos is established, the Conf folder will be generated under the folder and the following 3 files will be entered under/home/myrepos/conf.
Authz passwd svnserve.conf
We'll change it in turn
3.1,svnserve.conf Modify the following sections:
anon-access = readauth-access = writepassword-db = Passwdauthz-db = Authz
3.2,passwd modified to:
[users]username = password //here username and password set themselves
3.3,authz finally add the following two lines (these two lines resolve the SVN client to solve the authorization failed problem)
[\]* = RW
4, start Svnserve:
Svnserve-d-r/home/myrepos/
5, the client uses:
Client with SVN or TORTOISESVN client under Windows
5.1, from the Server checkout repository (under current directory)
SVN checkout svn://Server IP address/
5.2, add some files yourself, or copy the previous items (such as the following three folders) to the current directory, to let SVN help you manage
Code Project Document
5.3, suppose I put the above three folders in the current SVN folder to get SVN to manage, and then I'm going to add to the SVN repository:
SVN add code Project document //or directly with SVN add *
5.4, last submitted to SVN server
SVN commit-m ' Import three directories '
Be sure to write a comment on the current version.
Linux Server Configuration--Build SVN server