Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Tortoise SVN series: (1) installation

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

1. Installation

During installation, you should pay attention to selecting "command line client tools"

2. Check the version number of SVN (verify whether the installation is successful)

After the installation is complete, you can view the version number of SVN on the command line

Svn-version

The correct way to write: svn-version

The wrong way to write: svn-version

3. SVN creates a version library

The syntax for svn to create a version library is

Svnadmin create REPOS_PATH

Svnadmin create REPOS_PATH

Create a new, empty repository at REPOS_PATH.

Example:

Svnadmin create E:\ LiuSen\ svnserver\ 20150826svn

Note: the E:\ RK\ svnserver directory must exist, otherwise an error will be reported.

Check out svnadmin's help:

Svnadmin-help

Or

Svnadmin-h

Check out svnadmin create's help:

Svnadmin create-help

Or

Svnadmin create-h

4. Start SVN

The command to start SVN is as follows:

After startup, it will stop at the following interface

If you press Ctrl+C, you can stop SVN.

Next, test whether SVN is working properly:

If SVN is not started, the following interface appears:

If SVN is already started, the following interface appears:

Recommended method:

Create a new svnServer.bat file with the following contents:

Svnserve-d-r E:\ LiuSen\ svnserver\ 20150826svn

View svnserve's help

Svnserve-h

Or

Svnserve-help

5. Register SVN as a Windows service

Register for SVN services

Run the command prompt as an administrator and enter

Sc create svn binPath= "C:\ Program Files\ TortoiseSVN\ bin\ svnserve.exe-- service-r E:\ liusen\ svnserver\ 20150826svn" DisplayName= "svn Service"

Note: the command is "--service", not "- service". Use "svnserve-help" to see the "--service" help.

Win+R opens the run dialog box, enters services.msc, opens the service interface, finds the svn service and starts it

If you do not run as an administrator when registering the SVN service, an error will be reported:

5.2.Uninstall the SVN service

Stop the SVN service before uninstalling it.

The command to uninstall the SVN service is:

Sc delete svn

View sc's help

Sc-help

View sc create's help

Sc create-help

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report