next up previous contents index
Next: Compilation and Execution Up: Putting the Experiment under Previous: Importing Source Files to   Contents   Index

Basic Commands of CVS

We list some more basic commands. Please refer to, e.g., http://www.cvshome.org/ for a more detailed description.


  • Retrieving a local copy of a specified directory <name> under CVS
    cvs checkout <name>
  • Updating the local copy (the whole directory or a single file <file>) from the CVS repository
    cvs update     or      cvs update <file>
  • Committing changed files (all changed files or a single file <file>) to the CVS repository
    cvs commit -m "<comment>"     or
    cvs commit -m "<comment>" <file>
  • Adding a (new) directory or file <file> to the CVS repository
    cvs add <file>
    cvs commit -m "<comment>" <file>
  • Removing a directory or file <file> from the CVS repository
    cvs remove <file>
    cvs commit -m "<comment>" <file>
  • Reading the log of a file under CVS
    cvs log <file>


$\Rightarrow$ Tutorial 1:
In the directory exp/examples/sorting you will find a Makefile and a C source file sort-demo.c. Put these source files under CVS control.
Solution:
Assuming that a CVS repository was set up:

cd exp/examples/sorting
cvs import -m "sorting sources imported" sorting sort start

Next, get a local copy of the imported sources (here in ~/sorting):

cd
cvs checkout sorting


next up previous contents index
Next: Compilation and Execution Up: Putting the Experiment under Previous: Importing Source Files to   Contents   Index
Tobias Polzin 2002-11-18