Current location - Quotes Website - Collection of slogans - Initializing svn directory, prompting that the parameter does not exist, how to solve it?
Initializing svn directory, prompting that the parameter does not exist, how to solve it?
I. Preparation 1, SVN server: decompression package, you can download the latest version from official website. 2.SVN client: TortoiseSVN, commonly known as Little Tortoise, is a client program used to communicate with the server. Second, install the server and client program 1, SVN server: just unzip it directly to a folder. Sample path: c:\svn\ Note: If you download the msi program, just run it and follow the prompts to install it. 2.SVN client: run it directly and install it according to the prompts. Example path: C:\ProgramFiles\Subversion III. Build version repository: sample path: e:\svnroot. There are two ways to build a version library: first, create an empty directory e:\svnroot\repos 1, enter the folder repos 1, right-click the blank space and select "Tortoisesvn->; CreateRepositoryhere ",method 2, create an empty directory e:\svnroot\repos2, enter the DOS command line and enter the following command: svnadmin create: \ svnroot \ Repos24, run the SVN server and start the service. There are two ways to start the service: one is to start the service temporarily, and enter the following commands under DOS: SVN server-d-re: \ SVN root \ Repos1-listen-hostip address-listen-port= = port number Description: "listen-host" and "listen-port" are optional. The default port is 3690. If the port is already occupied, you can specify the port number through the option listen-port. Note: Please do not close the command line window. Closing the window will stop the svn service. Method 2: start the SVN service to run the program in the background: sccreatesvnservebinpath = "c: \ SVN \ bin \ SVNServer.exe-service-re: \ SVN root \ Repos1"display name =" subversion "dependent = tcpispart = autodescription1:(6538 SVN server is the name of the service, which can be named as required. (2) The parameter binPath indicates the installation path of the svnserve executable file. (3)-service means running as a windows service, -r means the location of svnrepository, and both the service parameter and the r parameter are part of binPath, so they are enclosed with the path of svnserve.exe in a pair of double quotation marks. (4)displayname indicates the name displayed in the windows service list, dependent = tcpip indicates that the operation of svnserve service requires tcpip service, and start=auto indicates that it will run automatically after startup. After installing the service, svnserve will not run automatically until the next boot. Note 2: (1)binPath has no spaces before the equal sign, but spaces after it. The same is true for displayname, dependent and start. Service is preceded by-,not-,and R is preceded by-. (2) If you want to uninstall svn service, just execute scdeletesvnserve. (3) From "sc" to "auto" in the same command sc, they must be written on the same line. (4) Start service command: netstartsvnserve, and stop service command: netstartsvnserve. You can also enter the interface provided by Windows to operate SVNService, that is, Control Panel > Services. (5) If the path contains spaces, the "\" symbol must be used to deal with "\". For example, in the above example, if svnserve.exe is in "c:\programfiles\svn", the command should be written as "bin path =" \ "c: \ program files \ SVN \ bin \ svnserve.exe" V. Configure users and permissions (1) and modify e:\ Svnserve.conf in the svn\repos 1\conf directory, Open svnserve.conf with a text editor: change: # anon-access = read # auth-access = write # Password-db = passwd to anon-access = readauth-access = writepassword-db = passwd Note: there are no spaces in front of columns such as anon-access, and Anon-access=read means that there is no access right to log in with user name and password but only read right. If you change it to none, you can't access auth-access=write, which means you have write permission to log in with your username and password (of course, you have read permission). Password-db=passwd means that users can be added to the passwd file through username = password. (2) Modify the passwd file in the same directory. Add user account: add: [users] # Harry = Harry secret # Sally = Sally secret account: [users] # Harry = Harry secret # Sally = Sally secret admin = admin Add an admin account with the password of admin. 6. Initialize SVN, import data and select a folder to upload SVN, "right->; TortoiseSVN-& gt; Import ",and enter" SVN://localhost/project1/"in the pop-up dialog box. Enter comments in "Importmessage", click OK, and ask for the account number, account administrator and password administrator. 7. Test SVN local test: create an empty folder test 1, right-click, select "SVNCheckout", and enter "SVN://localhost/project1"in "URLofrepository". Other machine tests: if the IP address of the host running svnserve is 1.2.3.4, then the content of URL input is "SVN:/1.2.3.4/project1".