Subversion and TortoiseSVN configuration experience

xiaoxiao2021-04-03  237

Subversion and TortoiseSVN configuration experience

[Date: 2006-05-25] [From:

This site original

]

Step 1: Download and install first on the official website of Subversion to download the Windows installation package, the latest version is 1.3.1. [http://subversion.tigris.org/servlets ... cumentlist? folderid = 91] After downloading, installed on the local machine, hereby pay attention to the designation of the installation directory as a pure English name, installed in the Chinese directory God knows which day will take out a mistake that makes you think about it. Download TortoiseSVN for local installation, I installed the latest TortoiseSVN-1.3.3.6219 [http://surfnet.dl.sourceforge.net/sourceforge/t ... svn-1.3.3.6219-svn-1.3.1.msi] This is a GUI administrative tool that integrates SVN into the Windows Shell, recommended. Step 2: Creating a repository After installation of TortoiseSVN, prompt to restart the machine, in fact, you can use it normally, first create an SVN repository (Repository), you can select the command line method or through the TortoiseSvn plugin for GUI operation, command line run As follows: Svnadmin Create f: / _ Subversionf: / _ Subversion is the repository directory I specified, if you use the GUI mode, you can click Right click on this directory to select [TotoiseSvn] -> [Create Repository Href ...] for creation, repository The mode is specified as the default.

Repository is created, generates several files and folders in the directory, and the DAV directory is a directory that is provided to Apache and Mod_DAV_SVN, allowing them to store internal data; DB directory is all version control data files; hooks directory placed hook script files The directory; LOCKS is used to place the Subversion file library to lock the directory of the data to track the client of the access file; the format file is a text file, only an integer is put, indicating the version number of the current file library configuration; STEP 3: Configure the open / conf / directory, open svnserve.conf to find two sentences: # [general] # password-db = passwd to the beginning of each line #, of which the second line is the file name that specifies authentication, ie Passwd The file also opens the passwd file, will # [users] # Harry = HarrySsecret # Sally = SallySsecret These lines of starting # characters are removed, this is the setting user, one line, the storage format is "username = password", if you can insert a line : Admin = admin888, adding a user name for the system for the system STEP 4: SVN service runs SVN Serve - Daemon - ROT F: / _ SUBVERSION service startup, - daem can be short-handed -d, - root is subject to -r, and a batch file can be created and placed in the Windows boot group to run the SVN service, or in this address [http://maxwoods.cnblogs.com/files/. .. loads / svnservice.rar] Download that SVNService.exe file, copy to the E: / SVN / BIN directory, then execute from the command line: svnservice -install --daemon --root "f: / _ Subversion" sc control SVNService Start = AutoNet SVNService This file will turn SVN to a service of the Windows system, and default to self-start, note: When performing the third sentence, make sure the SVN service run in the front in command line has stopped, if not stopped Press Ctrl C in its window to stop operation. Step 5: Creating a project version Tree Determines the SVN service (command line or Windows service) running, click Right click in the directory you need to import the repository Select [TortoiseSVN] -> [Import ...], in the pop-up window In the URL box, enter "SVN: // localhost / myproject" Click "OK" to perform the import. If there is no error, the data is all added to the SVN storage library directory tree. You can do these operations with the command line, which requires you to create a new "svn_editor" system variable in the system variable, the variable value is a local text editor executing file path, which generally refers to WINDOWS notepad. " C: /Windows/notePad.exe, then open a CMD window, execute svn mkdir svn: // localhost / myproject When the Notepad opened the log file window, press the "C" button to continue to generate the project tree. In general, we should create three directories after creating a file root path: BRANCHES, TAGS, TRUNK, these three directories are the three directories required for Subversion.

转载请注明原文地址:https://www.9cbs.com/read-131485.html

New Post(0)