Common CVS commands

Source: Internet
Author: User
Tags directory create

1. Update: 

Command Format: CVs update[Options] [Path/to/file] 

CVS update does not specify a file. Full directory update
CVS Update PATH/to/file: update a file
CVS Update-DP Delete empty directory create new directory

CVS-F-N Update-DP is not actually updated. Only files that need to be updated are returned,

(This is very useful, especially when you only want to check which files are different but do not want to update them)


Common parameters:

-R tag update to a tag

-D "2 days ago" updated to a date
-A discard all tag information and update it to the latest major version.
-C discard all local modifications
-D: automatically creates a directory. If there is a new directory on the server but there is no local directory, this parameter will be automatically created. Otherwise, this directory will not be detected.
-P: automatically deletes the empty directory. If there is nothing in a directory, this directory will automatically delete it.

-J TAG1-j tag2 bringing in different merge between two tags, which is useful in multi-branch Development


Example: CVs Update-D-C-p-a-r branch-bug-001 src/Java


2. Submit commit:

Command Format: CVs commit[Options] [path/to/file] 

This rarely uses parameters. Generally, the request can be submitted to a tag by using the-r tag parameter.


Example: CVs commit-M "Comments" filename

3. Diff comparison:

Command Format: CVs diff[Options] [Path/to/file] 

Common parameters:
-R Rev
-R REV1-r Rev2
-D Date
-D date1-D date2
-D date-r Rev

4. Check out checkout:

Command Format: CVs checkout[Options]Module

Common parameters:
-R tag
-D Date
-D dir checkout is saved to this folder. If this parameter is not specified, the module is used as the folder name.
-N when the-D parameter is used, the complete module path is not created, and only the last directory is created.

5. View status:

Command Format: CVs status[Options] [path/to/file] 

Common parameters:-V: View All tag information of a file

Common CVS commands

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.