1 VSS Overview
Version Control is an important aspect in the software development of working groups. 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
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.
Check the function. VSS saves relevant project documents (including text files, image files, binary files, audio files, and visual files)
Enter the database for Project R & D management. Users can quickly and effectively share files as needed. Once a file is added to VSS,
Each change is recorded. You can restore an earlier version of the file, and other members of the project team can view
The latest version and modify them. vss also records new changes. You will also find that VSS is used to organize and manage projects,
This makes communication and cooperation between project teams easier and more intuitive.
VSS can be used in the same development environment as Visual Basic, Visual C ++, Visual J ++, Visual InterDev, Visual FoxPro, and
Microsoft Office applications are integrated to provide 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. Promote reuse of Files
Today, users can work at the file and project level at the same time. Visual sourcesafe provides project-oriented features to more effectively manage jobs
Routine tasks in group 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
The copy of this document will be taken from the database to your working folder (working folder), you can modify your document. If
If another user wants to modify the same document, VSS will generate a message telling him that the document has been checked out.
Prevent multiple users from modifying documents at the same time to ensure document security.
After you complete the modification, you need to check in VSS. This operation is performed in your working folder (working folder ).
Copy the modified document and put it back into the VSS database so that other users can view the changes in time. VSS can save documents
And the latest version. The earlier versions are also tracked and recorded. VSS only needs to use anti-incremental technology
A small amount of disk space allows 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 as checked out
.
If you only need to read a document without editing it, You can execute the GET command to put the document in your working folder,
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 implement
Add, delete, edit, and share of the current file ). To a large extent, a project
Similar to a folder in a common system, the difference is that it can better support merge, archive, and version control.
(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
It is copied for comparison.
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 be modified by only one user at a time.
Prevent files from being accidentally changed 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 tracing-VSS can store source code and other files and track earlier versions to reconstruct 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 shares
. This advocates code reuse. In properties in the File menu, click link to view the sharing of a file.
Status.
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 second of Version 2.3.
The ninth branch of a revised version. 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. This file will not be modified
Reflected on other projects. The split was created in this way: the two files previously had a common history record, starting from the implementation of the split, their
History records will be tracked by VSS separately.
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
View the history of the split.
A shared file is a file connection established between multiple projects. Branch files are created in different projects.
File Path.
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 work file.
Folder, which can be an existing folder or a folder created by VSS. The VSS browser displays the file working text above the file list
Folder path.
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 (for details, see 3.3.5 modifying and editing files). vss copies the file from the project and puts it into your work file.
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 is in the project $/spreadsheet and
$/Wordprocessor, which has two different working folders. If Hanna works on the same project
A project has her own work folder.
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 recommended)
MB ).
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 the "configuration" 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 user logs on to the VSS password is the same as the planning domain password, the system will not prompt 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 example
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 see
Browser. In a browser, you can browse your database, view the project list, display the file statistics, and execute commands on files and items.
. 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. End
The result column shows the result 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 and 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 and select multiple
Files;
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 the project's
Sub-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, and get the latest version (Get latest
Version) and file Merge (merge branches) commands must use the working folder. Work folders can be set or modified at any time
In the VSS system, you can set the working folder 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
Working folder. 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.
Allows you to modify and edit a file. 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 to edit the file as prompted.
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. Shift
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 Mobile target project and the Chinese characters for the source project.
Destroy permission.
You can use the move command to locate the sub-folder and move it from one folder to another. This command is redefined
The path of the moved folder.
This command cannot rename a file. You can only rename the file by executing the RENAME Command. This move command does not change the folder content
Or the historical information of its sub-folders, which 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
Are you sure you want to delete the file, but make it recover 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
The command also applies 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 destroy permanently option. Once you select it
It is removed from the VSS database and cannot be recovered. In addition, when the destroy and destroy permanently commands are used to share files
It only acts on 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 your files or
All content in the project, but they cannot be restored.
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 file version information,
You can also obtain an earlier version of an object.
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 work folder beforehand, VSS will prompt you whether to set a work folder. Click OK to set a work folder.
Folder;
4) if you have determined the options, VSS will display the Get latest version dialog box, and you can get it from the current project.
The latest file backup, which 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 work folder beforehand, VSS will prompt you whether to set a work folder. Click OK to set a work folder.
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.
Password. Contact the administrator.
Upon logon, VSS will prompt you to enter the password to confirm your identity. If the user name set by the Administrator for you 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 important information for you.
. 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.