Tortoise SVN series: (1) installation
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