How to Create SVN database on the Ubuntu

Source: Internet
Author: User

1. Install software

Apt-gat installSubversion

Apt-Get install libapache2-svn

 

2. Start subversion sErvice

Svnserve-d

 

3. Check sErvice

PS aux | grep svnserve

Show following message:

Wkr 6537 0.0 0.0 13784 956? SS svnserve-d
Wkr 7593 0.0 0.0 5784 864 pts/0 S + grep-color = auto svnserve

 

4. Create SVN Database

Svnadmin create/test_dir

 

5. config sErvice for SVN Database

Vim/test_dir/CONF/svnserve. conf

 

Edit: Remove "#" as below.

Anon-access = read

Auth_access = write

Password-DB = passwd

Authz-DB = authz

 

Vim/test_dir/CONF/passwd

Edit: Add users and password

[Users]

Jason = 1, 123456

 

Vim/test_dir/CONF/authz

Edit: group and team member limits of authority

[Groups]

Designer = Jason, admin

Tester = Andy,

 

[Test_dir:/]

@ Designer = RW

Andy = r

* =

 

6. Import project file to SVN Database

SVN import/user/ProjectFile: // usr/local/SVN/test_dir/Some/Project-M "Initial import"

 

7. Checkout from database

Mkdir work

CD work

SVN checkout file: // usr/loacl/SVN/test_dir/

 

8. add files your want

SVN add test. C main. c

 

9. Commit to SVN

SVN commit-M "Enter your messiges for this commit"

 

10. Create New dir to SVN Database

SVN mkdir/usr/local/SVN/test

 

11. Clean up for local SVN

SVN cleanup/project/test

 

 

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.