Use of SVN (a) command line mode

Source: Internet
Author: User
Tags svn update

1 Why use SVN?

(1) Backup

(2) Code restore

(3) Co-modification

(4) Multi-version project file management

(5) Permission control

2 Installation of SVN

Here omit the installation step, only need to pay attention to hold the path is best not to contain Chinese or space.

3 Creating the SVN repository

There are two ways to create an SVN repository: Use the command line or use tortoisesvn. Here we use the command line:

(1) Go to the directory where you want to create the repository, I am here:

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/8B/9F/wKiom1hSrLuCGMqPAAA77TqhJF8305.png-wh_500x0-wm_3 -wmp_4-s_3109329603.png "title=" xy]9yc9 (_z2yol@ ' 6v%o~ld.png "alt=" Wkiom1hsrlucgmqpaaa77tqhjf8305.png-wh_50 "/>

(2) Create the repository and execute the following command:

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/8B/9F/wKiom1hSrX_xCJfqAAAOh_e_4WM939.png-wh_500x0-wm_3 -wmp_4-s_3888000507.png "title=" _e7@p2bx79[1ox}_6ns0nr8.png "alt=" Wkiom1hsrx_xcjfqaaaoh_e_4wm939.png-wh_50 "/>

After you execute the svnadmin create repository Path command successfully, you should see the following file under the corresponding folder, which indicates that the creation was successful:

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/8B/9B/wKioL1hSrg_CXxElAACZ91x5zvc499.png-wh_500x0-wm_3 -wmp_4-s_3345554650.png "title=" 11115.png "alt=" Wkiol1hsrg_cxxelaacz91x5zvc499.png-wh_50 "/>

(3) Create the SVN service so that you can start the SVN Server service in a service-like manner.

SC create Svnservice binpath= "D:\DevInstall\bin\svnserve.exe--service-r repository path" start= Auto depend= Tcpip

The following message will appear when the command succeeds:

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/8B/9F/wKiom1hStNrBfZfUAAAF9lGBkqw434.png-wh_500x0-wm_3 -wmp_4-s_895488000.png "title=" 11115.png "alt=" Wkiom1hstnrbfzfuaaaf9lgbkqw434.png-wh_50 "/>

Then start the service:

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/8B/9B/wKioL1hStS3RWtrpAABQ-u1weo4650.png-wh_500x0-wm_3 -wmp_4-s_3168264180.png "title=" yvy1jm4[_]b) gkvnfyaos]x.png "alt=" Wkiol1hsts3rwtrpaabq-u1weo4650.png-wh_50 "/>

(4) Check out project (checkout)

Execute command: SVN checkout svn://localhost/project directory. After successful execution, the following interface will appear:

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/8B/9F/wKiom1hSuAXQvRYVAAAHvC_hjE4428.png-wh_500x0-wm_3 -wmp_4-s_3087982981.png "title=" yvy1jm4[_]b) gkvnfyaos]x.png "alt=" Wkiom1hsuaxqvryvaaahvc_hje4428.png-wh_50 "/>

(5) Create a new file locally and upload the test. Then execute the following command:

SVN add HelloSVN.txt

If you are submitting a file, execute the following command:

SVN commit-m "My first commit" HelloSVN.txt

If the file is updated, execute the following command:

SVN update HelloSVN.txt


This article is from the "write-free" blog, please be sure to keep this source http://7156680.blog.51cto.com/7146680/1883237

Use of SVN (a) command line mode

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.