SNV installation experience

Source: Internet
Author: User

I have never used anything in version control before. Today I saw an article on SVN installation in the garden. I just installed it based on Huludao.

1. Download subversion and Windows client tool tortoisesvn

Subversion address http://subversion.tigris.org/find Windows Version

Tortoisesvn address http://tortoisesvn.net/downloads

2. Install subversion and tortoisesvn and click Next as prompted. toroisesvn will require a restart.

After the installation is complete, the right-click menu will have two more options, for example:

3. Create a version Library

I have created a version library under F: \ ABC. There are two ways to create a version Library: graphical and command line,

Graphical: in the directory F: \ ABC, tortoisesvn-> Create repository here... ", then you can select the version library mode. Here you can use the default mode, and then create a series of directories and files. It may be that the model of tortoisesvn I downloaded is incorrect, and the version library selection mode does not appear.

The format is incorrect, and the version library is created using the command line.

Name line: Run svnadmin create F: \ ABC in the CMD command.

Build the version library.

4. Configure user permissions

F: \ ABC \ conf contains three files

1. svnserve. conf is used to configure basic information.

Here you only need

[General]

# Password-DB = passwd

Modify

[General]

Password-DB = passwd

Here I encountered an error during configuration.

Google: It turns out that password-DB has been deleted # but there is a space in front of it. Just delete the space.

2. passwd is used to configure the user

Open it in notepad and find

[Users]

# Harry = harryssecret

# Sally = sallyssecret

# Here is a comment symbol, which is the same as the // in C #. Here I add a user xxiu with a password of 123, and each row is a user

[Users]

Harry = harryssecret

Sally = sallyssecret

Xxiu = 123.

3. Enable authz to assign permissions to users.

[Groups] indicates the meaning of a group.

[Groups]

Harry_and_sally = Harry, Sally

The consciousness is to add users Harry and Sally to the harry_and_sally group.

Next, Configure permissions for individual users.

[/] Indicates the root directory

Configure a read/write permission for the xxiu user and read the directory AAA for the harry_and_sally group.

[/]

Xxiu = RW

[/AAA]

@ Harry_and_sally = r

5. Run the svn Service

The command line uses svnserve-d-r F: \ ABC to start the service. Be sure not to close the command line window. closing the window will also stop svnserve.

6. Upload the file for file management to the server.

I used f: \ xxiu as the client directory. In this directory, I created a file for testing. txt.

Right-click-> tortoisesvn-> Import..., Because I installed it on a computer, enter SVN: // localhost/

If the above four steps are correctly configured, the user and password boxes will pop out.

Imported files in the directory F: \ xxiu.

7. Start Using

Right-click the check box and enter SVN: // localhost/in the URL of repository/

In this way, we get a copy of work.

Go in and check out

Open the test .txt and right-click the file and choose commit... to submit the modified version to the version library.

View the changes, right-click the test .txt, and choose tortoisesvn> show log.

You can see the modifications to the file.

I have never used software for version management before. I 've been wandering around in the garden. Sometimes I see some related articles and I just want to give it a try.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.