/ acm / sigsoft / cvs workshop / Nov '96

Adding / Editing / Committing / Updating

Getting a copy of a module out of the repository:

$ cvs checkout module
This will create a directory called module and check the module of the same name out into it. If you want to check out into a different directory use (note that the -d most be between the command and the module name:
$ cvs checkout -d directory module

Adding a file to a checked out module:

$ cvs add file
file will be added at the next commit.

Removing a file from a module:

$ cvs remove file
file will be removed at the next commit. cvs remove will not work unless you delete file first.

Bring your copy of a module up to date:

$ cvs update
Update will compare files in a checked out module with their counterparts in the repository. All files examined will be shown with a one letter code preceeding them.

Committing your changes back into the repository:

$ cvs commit -m "log message"
CVS will not let you commit if you have non-up-to-date files. If you omit the log message (-m option), an editor will be invoked to allow you to enter a log message.