Summary of visual source safe usage of Version Control Software

Source: Internet
Author: User

Install sourcesafe Software
1. Create a source safe Server
A. Run visual source safe 6.0 admin and select create database under tools.
B. Select User to add the user and password of the VSS database.
C. Share the directory selected by create database so that project team users can open the. ini file (you need to set writable sharing)
2. select Microsoft Visual sourcesafe 6.0
Enter the username and password created in the server user. The default value is admin and the password is blank.
A. Create Project enter the project name
B. add files to add files used in the project
In this way, you can use source safe to perform version control on the source files added to the project.
When using VSS version control, there are several common actions:
Check out: indicates that you want to modify the specified file. A red check mark will be displayed on the file. Other users cannot check out the file, select undo check out instead of check in.
Check in: check in after modification, which is equivalent to saving the modified file disk.
Get lastvesion: Get the final version, which is used by a program to be released, or read only without modification.

The version controlled by VSS can compare the changes of the same file in different periods, making it easier to identify errors. (Function: Right-click a file, select "show history" from the menu, and select two dates for comparison. The changes are marked in red and green colors,)

VSS tag function: For a complete version, you can use the label function on the menu to tag all the source files at this moment, in this way, you can use this label to download all the original programs at this moment. You can select your project directory in the workspace on the left, right-click a menu, and select "show history ", the operation of the project is displayed. Most files are added and the name column is empty. A label is displayed, and a label is selected, select the "get" button on the Right To download all the source programs at that time. This applies if an error occurs when you modify the source program, and you are eager to restore the original stable source program, download it and re-compile it.

Recently, ActiveSync was developed frequently to VSS. Because of the curve saving policy, four DLL with similar code of more than 95% were compiled, and only the strings in the resource or source code were modified at a time, after a version is modified, a label is added so that the next time you need to modify a code, follow the label get to modify it, VSS is inconvenient because the get version does not have a check out version, and you can only get the content of the last version in VC, unless you get it, first, manually remove the read-only attribute, and then check out from VSS, select the local leave version, and then check in, or use a better method: start with get in history and select the check box of the keep check out below.

The following is a Symbian mobile phone development. The leader asks to build a configuration library. Therefore, vss2005 is used for the first time. It is found that vss2005 is different from the original vss6.0 in the configuration Library Creation: during the creation of a new database, you will be asked one more question: whether the new database allows multiple users to write the same file, the old vss6.0, and the same file at the same time, only one person is allowed to access it at the same time.

When "add files" to VSS, if there are subdirectories under the directory you added, check the recursive check box to show the meaning of "recursion. You can add subdirectories to the new project together. Otherwise, no subdirectories are added.

In the VSS menu view, select search to view the File status in the current project. It is often used to check whether there are checked out files. :

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.