VSS instruction manual
Version Control is an important aspect of Working Group software development. It can prevent accidental file loss, allow reverse tracing to earlier versions, and branch, merge, and manage versions. In software development and you need to compare two editions Source code control is very useful when you use this file or retrieve files of earlier versions. 1 VSS Overview Version Control is an important aspect of Working Group software development. It can prevent accidental file loss, allow reverse tracing to earlier versions, and branch, merge, and manage versions. When software development and you need to compare two versions of files or retrieve files of earlier versions, source code control is very useful. Visual sourcesafe is a source code control system that provides comprehensive version and configuration management functions, as well as security protection and tracking and inspection functions. VSS saves relevant project documents (including text files, image files, binary files, audio files, and visual files) to the database for Project R & D management. Users can quickly and effectively share files as needed. Once a file is added to VSS, its changes will be recorded. You can restore the earlier version of the file. Other members of the project team can also see the latest version of the relevant document, and modify them. vss also records new changes. You will also find that using VSS to organize and manage projects makes communication and cooperation between project teams easier and more intuitive. VSS can be integrated with Visual Basic, Visual C ++, Visual J ++, Visual InterDev, Visual FoxPro development environment, and Microsoft Office applications, provides easy-to-use and project-oriented version control functions. Visual sourcesafe can process any file type created by a variety of development languages, creation tools, or applications. When files are promoted for reuse, users can work at the file and project level at the same time. Visual sourcesafe is a project-oriented feature that can more effectively manage the daily tasks in workgroup application development.
Files in VSS 1.1 To modify a document, check it out from the database or notify VSS that you want to edit the document. VSS will take the copy of this document from the database to your working folder (working folder), and you can modify your document. If another user wants to modify the same document, VSS will generate a message telling him that the document has been checked out (checked out) to prevent multiple users from modifying the document at the same time, to ensure document security. After you complete the modification, you need to check in VSS. This operation copies the modified document from your working folder (working folder) and puts it back into the VSS database so that other users can see the document changes in time. VSS can save all changes to the document and display the latest version. Earlier versions will also be tracked and recorded. When using the anti-increment technology, VSS only requires a small amount of disk space to allow users to obtain all versions of the document. If you have not modified the document, you can run the Undo check out command to save the document to the status before it is checked out. If you only need to read a document and do not need to edit it, You can execute the GET command, put the document into your working folder, and then select view ), to view the latest version of your document. Project in 1.2 VSS A project is a collection of all files stored in the VSS database. You can add, delete, edit, and share files between projects or within a project ). A "project" is very similar to a normal system folder. The difference is that it can better support merge and archive) and version control. Files are stored in projects in the VSS database. You do not need to manage the original files stored in VSS unless you want to check or compare them with other copies. VSS provides each user with a backup file in the working folder for users to view and edit the file. Although you can view files without working folders, you must create a working folder to process documents. 1.3 VSS Version Control VSS can store multiple versions of a file, including minor changes between file versions. Version control includes the following: L intra-group cooperation-by default, a file can only be modified by one user at a time, which can prevent files from being accidentally modified or overwritten by other users. However, the administrator can modify this default setting to allow multi-layer file check-out. This setting can also prevent excessive and unnecessary changes. L version tracking-VSS can store source code and other files and track earlier versions to achieve reconstruction of earlier versions of files and other related functions. L cross-platform development-in the case of multi-platform development, version tracing is used to maintain the core code. L re-use of code-tracking program benchmarks to make code reusable. 1.4 file splitting and sharing In VSS, a file can be shared by multiple projects ). Changes to files in a project can be automatically reflected in other shared projects. This advocates code reuse. In properties in the File menu, click link to view the sharing of a file. Branch is the process of separating files from the original shared project. It enables VSS to track files from different paths. Note: In other version control systems, branches are implemented by tracking version numbers. For example, version 2.3.9.2 is the ninth branch of Version 2.3. However, VSS tracks the file branches with significantly different project names. Split the file and disconnect the shared connection, so that the files in this project are irrelevant to other original shared projects. Modifications to this file will no longer be reflected in other projects. The split is created in this way: two files have a common history before, and their history will be tracked by VSS separately from the implementation of the split. After the file is split, the link button will no longer display the disconnected connection, but you can use the path (properties item in the File menu) button to browse the history of the split. A shared file is a file connection established between multiple projects. Branch files are different file paths created between projects. 1.5 working folder) VSS is a tool for storing and managing files, but editing and compiling files must be performed in the folder specified by VSS. This folder is called a working folder. It can be an existing folder or a folder created by VSS. The VSS browser displays the path of the working folder of the file above the file list. In the VSS system, the working folder is where you really process documents. When you want to edit or modify a document, you must perform the check out operation on the document (for details, see 3.3.5 modify and edit the file). vss copies the document from the project, put it in your work folder. After you modify the file and check the in file, VSS copies the file to the database again to record your modifications. Once you check out the file, VSS starts to create and manage your working folder on your local machine. Every user, project, or computer can have its own working folder. If Joe works on projects $/spreadsheet and $/wordprocessor, he has two different working folders. If Hanna works on the same project, she has her own working folder for each project. When you set a working folder for a project, you can use it to place the files that include sub-projects and 2 VSS Client installation 2.1 system conditions for installing VSS L computer/processor: Pentium or more advanced processors are recommended for 48 6dx/66mhz or later PCs. L memory: Windows 95 or later versions require 16 mb ram (32 MB recommended); Windows NT 4.0 requires 24 MB (32 MB recommended ). L Hard Disk: Client: Typical installation: 59 MB; 72 MB; installation process: 66 MB; L server: Typical installation: 128 MB; maximum installation: 141 MB; L additional hard drive requirements: Internet Explorer: Typical is 43 MB, the maximum is 59 MB; msdn: Typical 57 MB, the maximum is 59 MB L drive: CD ROM L display: VGA or more advanced display, super VGA is recommended. L Operating System: Microsoft Windows 95 or later or Microsoft Windows NT 4.0, NT requires Service Pack 3 or later (including Service Pack 3 〕 L peripheral device/Others: Microsoft Internet Explorer 4.01 Service Pack 1 (included ). 2.2 install the VSS client from the network 1) Open the "Network Neighbor" attribute dialog box of the local computer; 2) Click "Configure" button; 3) set the "Microsoft network user" attribute to: log on to the Windows NT domain, and the domain name is planning; 4) add TCP/IP, netbeui, and IPX/SPX protocols; 5) restart the computer and log on to the "planning" domain; Note: The administrator sets the logon password "111" for each NT user. When the user logs on for the first time, the computer will prompt the user to change the password. 6) Search for the server "vssdata" from the "planning" domain of "Network Neighbor "; 7) Open the shared "VSS" folder and double-click "netsetup "; 8) follow the prompts to start installation. 3. Basic VSS usage 3.1 log on to VSS Click the VSS icon or run visual sourcesafe 6.0 from the program menu to open the VSS browser. If the VSS password you log on to is the same as that you log on to the planning domain, the system will not prompt you to enter the password for accessing the VSS database; if the password you set for VSS is different from the password used to log on to the planning domain, the system prompts you to enter the VSS logon password. For details about how to change the VSS user password, see "3.2.14 change the user password ". 3.2 VSS Browser When you open VSS, if you set a password, it will prompt you to enter the password. If you do not set a password, you can directly view the browser. In a browser, you can browse your database, View Project columns, display file statistics, and execute commands to operate files and projects. The title bar at the top of the browser is the database you are currently connected. VSS uses symbols to provide information about files and projects. Below the menu bar is a commonly used toolbar. There are many commonly used command buttons, which can help you quickly perform operations on files. A project list is displayed in the project column, including information about special projects. The file column displays a list of all files in the current project. The result column displays the results of the current operation. 3.3 basic VSS operations 3.3.1 create a new folder 1) Select the project (parent folder) for which you want to create a new folder ); 2) Select the creat project from the File menu; 3) write the name of the folder to be added, and add remarks for the new folder in the comment column; 4) Click OK. 3.3.2 Add a folder 1) Select the project (parent folder) for which you want to add folders ); 2) select add files from the File menu; 3) Select the folder to be added in the folder list; 4) Click Add. You can also make a simple note on the comment bar for the folder you added; 5) If you want to add it together with the sub-folder, select recursive; 5) Click OK to add a folder with remarks. Or click Close to exit, return to the add files dialog box, and click Close. 3.3.3 Add a file 3.3.2.1 use the Add command to add a file 1) Select the folder where you want to add files; 2) select add files from the fil menu; 3) Select the file to be added in the file list. If you want to add multiple files, you can use the CTRL or shift key to select multiple files at the same time; 4) Click Add. You can also make a simple note on the comment bar for the folder you added; 5) Click OK. 3.3.2.2 add files/folders by dragging 1) Open the VSS browser and adjust its size so that the windows resource manager can be displayed; 2) open windows Resource Manager and adjust the size so that both browsers can be displayed simultaneously; 3) Select the file or folder you want to add from Windows Resource Manager; 4) drag the selected file or folder to the VSS browser. The file is added to the project, and the added folder is used as a sub-project of the project. 3.3.3 view files 1) Select the file to be viewed from the file list; 2) select view from the edit menu to open the dialog box; 3) select View sourcesafe's copy of this file; 4) Click OK. 3.3.4 create a working folder Check in, check out, undo check out, Get latest version, and merge files (merge branches) you must use the working folder when using commands such. The working folder can be set or modified at any time, and the working folder can be set in the VSS system in two ways. 3.3.4.1 create a work folder 1) Select the file/folder for which you want to set the working folder in the file or project list of the VSS browser; 2) Select set working folder from the File menu to open the dialog box; 3) select or create a folder in the Resource Management list; 4) Click OK. 3.3.4.2 use the check out operation to set the working folder When you check out a file, if no working folder is set for the file, the system prompts you to create or specify a working folder for the file, you can set the working folder according to the system prompts. 3.3.5 modify and edit a file 1) select edit file from the edit menu to open the dialog box; 2) Select Check out this file and edit it in your working folder; 3) Click OK. Note: If you have set a working folder for the file, VSS will put a copy of the file into your working folder and open the file for modification and editing; if you have not set a working folder for the file, the VSS system will remind you to set a working folder. You can set a working folder according to the system prompt before editing the file. 3.3.6 move files/folders 3.3.6.1 move a file You only have one way to move a file: Share the file to the project, and then delete or destroy it from the original project. After the file is moved, the historical information is still valid. However, you cannot use the move command to move a single file. 3.3.6.2 move a folder (Project) Note: To use the move command, you must first ask the Administrator to set the Add permission for the target project and the destroy permission for the files in the source project. You can use the move command to locate the sub-folder and move it from one folder to another. This command re-defines the path of the folder to be moved. This command cannot rename a file. You can only rename the file by executing the RENAME Command. This mobile command does not change the folder content or the history information of its sub-folders. It only affects the historical information of the New and Old parent folders. Warning when you move a folder, you cannot recreate the earlier version of the parent folder. To move a folder, follow these steps: 1) Select the folder to be moved; 2) Select move from the File menu to open the dialog box; 3) select the target folder from the list; 4) Click OK. 3.3.7 share a file/folder) 1) select the target project to be shared in the VSS browser. 2) Select share from the sourcesafe menu to open the share dialog box. 3) Select the file you want to share from the file to share list. If the file is not displayed, you can search for it in the project list next to it. 4) Click share. 5) Click Close. 3.3.8 split a file (Branch) 3.3.8.1 split shared files 1) Select the file you want to split in the browser; 2) Select branch from the sourcesafe menu to open the split dialog box; 3) Fill in comment remarks; 4) Click OK. 3.3.8.2 split and share files in one step 1) Select the project to be branch/share in the VSS browser; 2) Open the share dialog box in the sourcesafe menu; 3) Select the file to be shared from the file to share list. If the file you want is not displayed 3.3.9 delete/restore a file or folder To remove a file from VSS, you must first determine whether to move the file from the project or the VSS database. You must also determine whether to delete the file, but whether to restore it or permanently destroy it. There are three ways to remove files from the database in VSS. 3.3.3.9.1 Delete) Remove files from the project. The file still exists in your VSS database and other projects that share the file. You can restore it. This command is also applicable to projects. 1) Select a file or project; 2) Select the DELETE command from the File menu; 3) Click OK. 3.3.3.9.2 damage (destroy) The delete dialog box contains the permanent damage (the destroy permanently) option. Once you select it, the file or project will be removed from the VSS database and you cannot restore it. In addition, when the destroy and destroy permanently commands are used to share a file, they only apply to the current folder. Other shared folders still keep the file, and the file is still saved in the VSS database. 1) Select a file or project; 2) Select the DELETE command from the File menu; 3) Select the destroy permanently option; 4) Click OK. 3.3.3.9.3 purge) This command permanently removes the file or project you have deleted, but does not destroy it. You can use this command to clear all the content in your file or project, but cannot restore them. 1) Select a project in the VSS browser; 2) Open the Properties dialog box of the File menu and press the delete button; 3) Select the file name to be cleared from the list; 4) Click purge; 5) If you want to continue, click yes in the prompt bar provided by VSS. 3.3.10 view historical information or earlier versions of a file/folder The detailed information of each file is stored in the historical information. In the history dialog box, you can not only view the version information, remarks, and history of the file, but also obtain an old version of the file. Note: Only files can be checked out from history information, while folders (projects) cannot be checked out from it. You can also perform get, check out, diff, pin, unpin, roll back, And reprot operations in the History dialog box. To view historical information: 1) Select Show history from the tool menu to open the history Options dialog box; 2) Click OK. 3.3.11 get the latest file version 1) Select the file you want to operate on, or multiple files or a project; 2) Select get latest version from the sourcesafe menu; 3) If you have not set a working folder in advance, VSS will prompt you whether to set a working folder, click OK to set a working folder; 4) if you have determined the options, VSS will display the Get latest version dialog box, and you can get the latest file backup from the current project, it is placed in your work folder. 3.3.12 obtain an earlier version of a file 1) Select the file you want to view; 2) Select Show history from the tool menu to open the History option dialog box; 3) Click OK to open the history dialog box; 4) Select the version you want to view; 5) Click get to open the get dialog box; 6) If you have not set a working folder beforehand, VSS will prompt you whether to set a working folder, click OK to set a working folder; 7) Click OK in the "retrieve" dialog box. The file version Backup will be transferred to your working folder from the current project. 3.3.13 Change User Password Use the change PASSWORD command to set or change your password. To change the password, you must first know the current password. If you forget your password, contact the administrator. Upon logon, VSS will prompt you to enter the password to confirm your identity. If the user name set for you by the Administrator is the same as your network name, VSS will no longer prompt you to enter the password. Note: Your VSS password can be the same or different from your operating system password. It does not replace your operating system password. How to change the password: 1) Open the Change Password dialog box from the tool menu; 2) enter your current password in the old password box; 3) enter your new password in the new password box; Note: The password can be 1 to 15 characters in the form; 4) type a new password in the confirmation box; 5) Click OK. 3.3.15 open/close a database If you use VSS, your files and projects will be stored in a database. It securely stores your information and provides you with important historical information and version tracking. To create a new database, contact the VSS administrator. 3.3.15.1 open an existing database To run your VSS, you must connect to the database that stores your files. This step is usually automatically completed by VSS unless you want to select another database. If the database has not been installed, contact the administrator. 1) select Open sourcesafe database from the File menu to open the dialog box; 2) Select a database from the Database List; 3) Click Open to open the database. 3.3.15.2 shut down the database You can only work in one database. Therefore, to close a database, you only need to open another database. Trackback: http://tb.blog.csdn.net/TrackBack.aspx? Postid = 596897 |
Category: project management | added to souzang | browsing (311) readers:
|
After logging on, you will be here. |
|
Comments:
1After adding yoshubom-, I suddenly felt sorry. Now I am posting my regret, haha ^
To revoke the VSS Association:
First, close the project, and then delete the directory under the project directory (same as the solution file level *. SCC file and *. vssscc file, start the project (double-click the solution file), then the VSS startup screen will still appear, "cancel" it-"option appears, select "permanently delete Source Code Management Association binding ". In this way, your project is out of the VSS management. Do not forget to delete the corresponding project in VSS.
2Yoshubom-later found that there are also. SCC file subdirectories, also need to be deleted.
3Yoshubom-2006-10-26 in fact, it is not necessary to cancel the association. If your project is associated with VSS, you will be prompted to log on to VSS when you open the project. At this time, as long as "cancel" is used, you will see whether to undo the option associated with VSS. ========================================================== =========== Visual sourcesafe 6.0
Recently, the company has introduced VSS for source code management. I think there are too few regulations in the company, especially in the development process, the most basic things, including unit testing, are not really standardized, so I want to promote the concept of unit testing through the use of VSS, even if the promotion process has such or such difficulties, however, such actions are beneficial to the company and to the individual. Now the problem is a degree. I read the VSS document yesterday and found a big problem: the VSS database is a file-type database, which can only be controlled by setting the folder permission, this problem is also clearly stated in the description of Ms. For details, see: To protect the visual sourcesafe (VSS) database and files used to control and manage VSS, use Windows security permissions to restrict access. As described in this document, you can lock the database to perform the following tasks: only members in the VSS Database Administrator group in the VSS Windows folder can perform administrator tasks, this includes running analyze and restoring archive VSS files and projects.
After setting VSS security, all VSS administrators and VSS users can also use VSS as before setting.
If the user is not a VSS user, the user will not be authorized to access the network shared location of the VSS, so the user cannot access the database. ========================================================== ==========
VSS file access denied Solution
Note: The following operations are completed on the server.
1: Right-click the folder "properties" --- "security" --- "advanced" --- "owner"
Select "Replace sub-container and object owner"
"OK" 2: Right-click the folder "properties" --- "security"
Remove "allow future parent's inherited permissions to be propagated to this object"
"Delete"
When adding the Everyone group for VSS browsing, the system prompts that the file path is null:
Right-click the temp folder, "attribute"-"security"-select "Full Control" ======================== =============== Chapter 2 install and configure the VSS Client
2.1 installation overview in order to use the powerful features of VSS, We must install the VSS client (visual sourcesafe client) for a staff member's machine ).
At present, the VSS server has been configured and the machine to be installed is named "plaserver". You can find this computer through "Network Neighbor" in the LAN. Alternatively, enter "// plaserver" in the address bar and a dialog box will pop up asking about the user name and password. The shared user name and password we set are "VSS". You can enter them and press Enter, then you can browse to a folder named "VSS" on the server. Double-click it. Double-click the program to run the installation. Program name: ”netsetup.exe "Figure 1 browse server VSS folder
After the installation, all the content in the VSS folder will be displayed. We can double-click the corresponding netsetup.exe in the step shown in figure 1 to install the program.
The installation process is different from the general windows program. We will not detail it here. The only note is that when entering the serial number, please enter the software serial number as "111-11111111 ". 2.2 configure VSS. under. net, find the program you just installed in the program group in the Start Menu. Its location is "Microsoft Visual sourcesafe à Microsoft Visual sourcesafe 6.0", and click it, A dialog box is displayed, as shown in Figure 2. vss client logon box
There are three options. Here we will explain them one by one:
? Username: the user name of the VSS user. We have allocated a user name to all the Members on the server. The user name is my Chinese character. For example, the User Name of the member Wang hongchao is "Wang hongchao ", enter it directly.
? Password: refers to the password of the VSS user. When we log on for the first time, the initial password we allocate is null. You do not need to enter it. After logging on, you can change the password by yourself (as described in the following section ).
? Database: The target database address of the VSS server. You can enter "// plaserver/VSS" as shown in figure 2, or press "browser ..." Press "brwoser ..." The following dialog box is displayed: Click to add the available VSS database list for the new database. Figure 3 open sourcesafe database3 shows. In the dialog box, the names and actual physical addresses of all available databases are listed first. You can select one of them and click "open" to select a database. To add more databases, click "browser…" in the dialog box ...". For further selection, we will not detail it here. Chapter 3 Introduction to VSS usage
3.1 interface overview menu bar
(Figure 4) It is the user interface of VSS. We can familiarize ourselves with it first. File area project directory area toolbar figure 4 Basic VSS Interface
The menu bar and toolbar will be described in detail later. The following describes the project directory and file area:
? Project directory area: displays all directories in use. You can create or delete or modify directories in your own directory area (when defining permissions, all users are prohibited from deleting directories ).
? File display area: After a directory is selected, the file display area displays all files in the directory and displays some information about the file, such as who is editing the directory. 3.2 changing the user password when we initialize the definition, the initial password we grant to all users is a blank password, so to ensure code integrity and security, all users must change their passwords after logon.
Change the password in "Tools" à "Change Password…" on the menu bar ...", In the new dialog box, enter the old password (blank password), and then enter the new password again to make the new password take effect. 3.3 create a directory. See Figure 5. It is a simple directory area. Figure 5 shows the basic functions of the Directory area.
Currently, in permission settings, users are only allowed under their own directories (that is, under "/$/Zijing platform version 2.0/personal backup/[username]" ([username] is my user name) you can create new directories in directories and subordinate directories. You cannot create new directories in other directories.
For example, after logon, you can right-click the "Wang hongchao" directory in the directory area and choose "Create Project" from the shortcut menu ", you can create a new directory. Figure 6 create a new directory
In the dialog box in 6, enter the name of the directory, and then write a simple comment on the directory in the comment (VSS allows no comment, however, we recommend that you add a simple comment to describe the simple functions of the directory ). Click "OK" to create a new directory. 3.4 specify the working directory in the right-click function bar shown in Figure 5. We can see that the second item is "set working folder ...", That is, specify the working directory, which specifically means to create an image directory for this directory on the local machine, so when we check out the files in this directory later, this file can be found in the specified local working directory. 3.5 add file figure 7 Toolbar
Like other Microsoft software, each feature can be implemented in multiple ways, and the same is true in VSS. For example, the Directory Creation function we mentioned in section 3.3, the function is the same as that of the first button in the toolbar. We will not describe it in the future. Please feel free to use it.
Now let's describe the second button, that is, "add files ...", This is particularly useful when initializing a file directory.
First, we should select a directory in the directory area, that is, select a target directory to be added to the file (the selection method is to click on it with the mouse ). Then press this button to bring up a new dialog box. Figure 8 add file dialog box
This dialog box shows the original file dialog box. We can select a single file with the mouse and click "add" to add it to the selected directory. You can also press the shite key to select a connection (that is, multiple files can be selected consecutively at a time), or press the ctrl key to select multiple files at an interval ).
Figure 9 Add a file
After pressing the "add" button, the dialog box 9 is displayed. We can enter a short text comment to describe these files. below, we can see a check button (apply same comment for all files), which can be checked to use the same comment for each file. If you do not select this check button, the dialog box will pop up again based on the selected files, asking you to enter comments for specific files.
The following three check buttons must be displayed after you click "addvanced>. You can select as needed.
Sometimes we encounter such a situation where our project files contain not only individual files, but also many subdirectories. How can we do this?
In fact, the operation method is very simple. We only need to browse the folder in Windows as shown in, and select the files and subdirectories to be added, drag it to the file display area of VSS.
Figure 10 adding files in batches: 3.6 check in and check out is an important concept in VSS: check in and check out, when you check in your file, the file in your local directory will be set to read-only. In this status, you cannot modify the file.
When we need to modify this file, we need to use the check out command to check out the selected file. At this time, your file will be freely modified, while in VSS, the file will show who is editing the file, and other users can no longer operate on the file, ensuring the uniformity and security of the file.
The check out button can not only check out the file, but also check out the entire directory. We can handle it as needed.
The check in button is the same as the check out button. You can perform file operations or directory operations.
In addition, we also have an undo check out button. If we make some changes after the last check out, we suddenly feel that this change is unnecessary, in addition, you cannot use the "undo" command in the editor to restore to the original state. You can use this undo check out button to obtain the original version file again.
In addition, there is a get last version, which can be seen in the selected file by right-clicking the function menu, it directly copies a backup file from VSS to a specified directory. 3.7 version management function we can see the show differences button and show history button in the toolbar. They are also very important version control functions. You can also find the corresponding menu item in the context menu of a specified file.
Show differences can be used to check the similarities and differences between local files and files in the VSS database (the last version). If we have not strictly followed the check in and check out modes, if there are differences, use get last version to obtain the latest version from the server database.
Show history can provide a corresponding table for the previous modifications to the file, as shown in Figure 11 Version history dialog box.
We can see that the file abc.txt has three versions in the VSS database. The first version is obtained when it is added.
The second and third versions are the new versions stored after modification. Version 3 is the latest version.
If you need the original version, select version 1 and click "get" to obtain the original version. If you need to obtain version 2, the operation is the same as above.
You can also use the "rollback" button to roll back the version. In this way, we can easily manage versions.