Add a new project to SVN in Ubuntu

Source: Internet
Author: User
Tags tortoisesvn
1. log in to SVN server account: sshtest@192.168.1.100 password: 1234562, create SVN Project a, enter the svn Create project directory cd/etc/apache2/mod-enabled/B, edit the file sudovidav_svn.c

1. log on to the SVN Server
Accounts: ssh test@192.168.1.100
Password 123456

2. Create a SVN Project
A. Go to the svn project creation directory.
Cd/etc/apache2/mod-enabled/

B. edit files

Sudo vi dav_svn.conf
Password: 123456 (the logon password for account test, the same below)

C. Add a new project (TestsvnFor example, add the following code at the end of the file

  1. <Location/Testsvn>
  2. DAV svn
  3. SVNPath/home/fruits/svn/projects/code/testsvn
  4. AuthType Basic
  5. AuthName "Subversion repository"
  6. AuthUserFile/etc/svn-auth-file
  7. Require valid-user
  8. Location>
3. Create a project (testsvn) resource library
Sudo svnadmin create/home/fruits/svn/projects/code/testsvn
Note: Now you can use TortoiseSVN to download svn resources, but you cannot upload resources (because you do not have the write permission)

4. Modify project (testsvn) Access Permissions
Sudo chmod 777-R/home/fruits/svn/projects/code/testsvn
Note:-R recursively sets all permissions in the testsvn folder to read, write, and execute.

5. Verify that the svn Project (testsvn) has been created successfully.
1) download testsvn from svn to local
Use TortoiseSVN to download the file svn resource to the Local Machine (right-click checkout). The svn URL of the new testsvn project is as follows:
Http: // 192.168.1.100/testsvn/
Or run the following command to download svn resources:
Svn co http: // 192.168.1.100/testsvn

2) upload local files to svn
A. Create a fileAaa.txt, Input: doodlemobile
B. Right-click and choose TortoiseSVN.Add...
C. Right-click --"SVN Commit...-- Enter the change record, for example, add aaa.txt
D. Open your browser and enter http: // 192.168.1.100/testsvn/to check whether the upload is successful!

6. FAQs

1)Cocould not open the requested SVN filesystem Error


Solution:This is because the project resource library (testsvn) has not been created, so the file cannot be accessed. For the solution, see step 3.

2)Permission deniedError

Solution:This is because the user does not have the write permission (the file cannot be uploaded). For the solution, see step 4.

Related Article

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.