Use of svn-related commands and repos configuration in linux

Source: Internet
Author: User

This article will give you a detailed introduction to the use of svn-related commands and repos configuration in linux. If you need to know more, please refer.

Recently, to facilitate program management, svnserver has been installed on the server and is scheduled to be updated on a regular basis!

Windows server 2008 in the server environment linux in the client is required for the command environment

I. Instructions

A. Use it on the server (if the server is linux, replace the following windows dos command with the corresponding shell command)

1. Create a repository

The Code is as follows: Copy code
Svnadmin create test/

 
2. initialize the Repository

The Code is as follows: Copy code
Md source

 
Create an object in this directory

The Code is as follows: Copy code
Svn import source/file: // f:/lycsvn/repos1/-m "init source"

 
3. test whether the new position is normal.

The Code is as follows: Copy code
Svn checkout file: // f:/lycsvn/repos1/

 

B. Both the client and server can be used.
4. remotely view positions

The Code is as follows: Copy code
Svn list svn: // IP/shop

 
5. Local checkout the location file

The Code is as follows: Copy code
Svn checkout svn: // IP/test f:/testsvn

 
6. Submit the position after modifying the file

The Code is as follows: Copy code
Svn commit-message "shuacommand"-username = shua-password = redhat f:/testsvn

 
7. What about new files?

The Code is as follows: Copy code
Svn add f:/testsvn
Svn commit -- m "testmessages" f:/testsvn

 
Ii. Modify the repos configuration file

The Code is as follows: Copy code
Conf/passwd + username = Password
Conf/svnserve. conf

# Anon-access = read
# Auth-access = write
# Password-db = passwd
Change
Anon-access = none
Auth-access = write
Password-db = passwd

 

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.