By Alvin Alexander. Last updated: June 4, 2016
With a little down time this morning I thought I'd start a simple CVS command line reference page (cheat sheet). I've tried to include the most common CVS command line examples here.
cvs co MyProject Checkout the project named MyProject. cvs ci -m "I changed these files because" Commit changes in your current directory cvs add file Add "file" to the repository. Not actually committed until you issue the commit command. cvs annotate file Prints a report showing each line of file. Each line is prefixed by information about the most recent change to the line, including the revision number, user, and date. (Some people refer to this as "cvs blame". cvs diff TODO: LOOK UP THESE OPTIONS cvs export XXX Export files from the CVS repository. Similar to the checkout command, but it doesn't include all the CVS subdirectories or any other sandbox information. cvs history file Displays historical information about file (if you have the history file set up in your repository). cvs import XXX XXX TODO: NEED MORE HERE cvs log file1 file2 Prints an activity log for the files. cvs release . TODO: RELEASE - MORE INFORMATION HERE cvs remove file Flag that file should be removed from the repository. cvs status file1 file2 Displays the status of the files. cvs tag file1 file2 Assign a tag to the files. (ADD MORE HERE) cvs update . Update the current directory from the repository. cvs update . TODO: SHOW MORE OPTIONS HERE
Sorry that this list of CVS commands is not complete. I've made a note to come back here and update the next time I have some more free time.