CVSROOT=:pserver:{username}@{servername}:{cvs_root}
export CVSROOT
cvs login
Obtaining Source
cd {work_dir}
cvs -r checkout {module}
Updating your current (local) sources to match repository
cvs update
Editing CVS sources
cd {work_subdir}
cvs admin -l {filename}
cvs update {filename}
cvs edit {filename}
vi {filename}
Commiting Changes
cvs commit -m "{log_message}"{filename}
cvs unedit {filename}
Undoing Changes
cvs unedit {filename}
cvs update {filename}
cvs admin -u {filename}
Cleaning Up Workarea
cd {work_dir}
cvs release -d {module}
Adding a File or Directory
To add a new file to a directory, follow these steps:
You must have a working copy of the directory.
Create the new file inside your working copy of the directory.
Use the command cvs add {filename} to add this file to version control. For binary files use the option
Use the command cvs commit {filename} to actually check in the file into the repository. Other developers cannot see the file until your perform this step.
You can also use the command cvs add to add a new directory as well. Note: Unlike most other command the add command is not recursive.
Removing a File or Directory
Here is what you can do to remove a file:
Make sure that you have not made any uncommitted changes to the file.
Remove the file from your working copy of the directory (use rm or delete).
Use cvs remove to tell CVS that you really want to delete the file.
User cvs commit to actually perform the removal of the file form the repository.