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
- <Location/Testsvn>
- DAV svn
- SVNPath/home/fruits/svn/projects/code/testsvn
- AuthType Basic
- AuthName "Subversion repository"
- AuthUserFile/etc/svn-auth-file
- Require valid-user
- 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.