SVN's usage experience

Source: Internet
Author: User

Svn

1. Installation:
Server:setup-subversion-1.8.9-1.msi
Test: cmd---> SVN--version
[Note: The installation directory is best not to use the Chinese path name]

2. Create a repository:
1) Create a directory of SVN repositories locally (for example: Svnrep)
2) Create a directory under this directory (the name of the project to be managed, such as: OA)
3) Create repository: svnadmin Create repository directory full path (for example: Svnadmin create F:\workspace\SvnRep\OA)


3. Start the server:
1) Command: svnserve-d-r Repository Directory
A: Indicates that this file has just been added to version control

2) Disadvantages of command line startup:
Once the command-line window to run the service-side program closes, the service stops, is inconvenient, and needs to be started manually each time

3) Workaround:
Register it as a Windows service

4) Registration:
# SC Create service name binpath= "executable path" start= Auto depend= Tcpip
# Set the service to be self-starting and dependent on the TCPIP service
# windows Specifies the parameters: on the left only (no spaces), the right side has a space
# SVN service startup requires parameters, and you need to specify the repository path name to start
# need to run as Administrator
SC create Svnservice binpath= "H:\Soft_Install\small_soft\Subversion\bin\svnserve.exe--service-rF:\workspace\SvnRep "start= Auto depend= Tcpip

Test: Open the list of services and start Svnservice to see if it can be started. If not, please check if BinPath is wrong

4. The SVN command line uses:
SVN add filename# put files into version control
SVN commit-m "Log content" FileName # needs to switch to the directory where the file is located
SVN checkout URL# Check Out Project
SVN update filename# Update files

5. Eclipse plug-in installation:
1) Plugin: eclipse_svn_site-1.10.5.zip
2) Unzip
3) Place the extracted folder into the Dropins directory under the Eclipse installation directory
4) Restart
5) If SVN is found under Window------and Preferences, the plug-in installation is successful

6. Sharing and Checkout under Eclipse
1) Share: Right----Team---Share Project--SVN--Create a new repository location--URL (for example: Svn://localhost/oa)--Finish

URL notation:
svn://address/Warehousing directory name
===> you must create a warehouse before using SVN

2) Some symbols appear after the project is submitted:
? : Indicates not being included in version control
*: Indicates that there are files not submitted to the repository under the current project

7.TortoiseSVN:
The SVN client, through which the user can use SVN as if it were normal software, does not need to be versioned through Eclipse

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

SVN's usage experience

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.