Ubuntu to set up SVN method detailed

Source: Internet
Author: User

1, the first preparation of software tools, Ubuntu installation software that is quite convenient ah

sudo apt-get install subversion

2. Create Warehouse folder:

Cd/home

sudo mkdir svn

/usr/local/svn# sudo chown-r 777 svn

/usr/local/svn# sudo chmod-r 777 svn

The last command gives the group members the appropriate permissions for all files that are newly added to the file warehouse.

Should be to add the appropriate group permissions, but since it is the simplest way, it omitted that point, hehe

3. Create Warehouse

sudo svnadmin create/home/svn

Modify the conf/svnserve.conf file under SVN

Get rid of #[general] The # number in front

[General]

#匿名访问的权限, can be read,write,none, default to read

Anon-access = None

#认证用户的权限, can be read,write,none, default to write

auth-access = Write

#密码数据库的路径, get rid of the front #

Password-db = passwd

Modify configuration file passwd

If modified into

[Users]

Flyli = 123456
Then start the SVN service

Svnserve-d-R/HOME/SVN

4, the final introduction of SVN project

SVN import-m "New import"/home/test svn://localhost/svn

So the items under the/home/test folder are imported into SVN, and the-m argument means that the message is what you see when you look at SVN log in the future.
And then we'll test it.

sudo mkdir/home/svn_down

Cd/home/svn_down

sudo svn co svn://localhost/svn

See if the files in SVN have been downloaded?

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.