cvs -d /projects/drg/CVSROOT checkout drg
The source tree will be in drg/ off of the current directory.
cd ~/drg; cvs update -Pd
You will see a list of all the modified files with code letters indicating their status:
U,P - updated R - locally removed M - locally modified
A - locally added C - conflict ? - not in CVS
cd ~/drg; cvs commitIt will pull up an emacs buffer for you to type up a log entry. If you made some changes that you don't like, rm the file, then update into the directory to replace with a repository copy. You should commit only working versions and do so every time you have made useful changes.
cvs add filenameThe file won't actually be added until you commit your changes as above. Do not add object files (only source files).
rm filenamecvs remove filename
The file won't actually be removed until you commit your changes as above.
The file must be deleted first, or cvs remove won't work.
Do this with care. Make sure the file is not needed anymore.
It is possible to undo this through CVS, but it is a pain in the ass.
cvs status -v filenameThis will print out the current status of the file, including whether it's been locally modified. You can do this for whole directories too.
CVS update to retrieve new changes. If you don't
need it anymore, just rm -r the directory.
Make sure you have committed any changes
you want to keep, and don't have any other useful files there!