CVS Cheatsheet
CVS (Concurrent Versioning System) is a "version control" program that keeps track of the changes you make in your code. This is a brief cheatsheet on using the command-line interface to CVS. You can find more detailed tutorials and such at cvshome.org.
-
To create a project:
Navigate into the base directory of the project you want to store in
CVS, then issue the command below. CVS will then add all the files
and subdirectories into the new repository.
cvs -d cvsroot_path import project_name vendor_name release_tag
-
To checkout files:
cvs -d cvsroot_path checkout module_name_or_path
- To commit changes:
cvs commit
CVS will commit all changes in the current directory and below, so be in the top directory you want to commit.
CVS stores the repository path, so you don't need to enter it again.
- Update the sandbox:
cvs update -d
The update will update your working files to the latest committed files.
-
Adding files to a repository:
cvs add filename
The file or directory will be added a the next commit command.
-
Removing files from repository:
cvs remove filename
-
Releasing the checked-out code:
cvs release project_name
-
Comparing your code to the original / archived code:
cvs diff filename
Restricted access |