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