$ cd ~/work-rel-3-0
$ cvs co -r rel-3-0 java
$ cvs update [file-name]
$ cvs commit [file name]
$ cd ~/work
$ cvs co java
$ cvs update -j rel-3-0 [file name]
$ cvs commit [file name]
$ cd ~/work-rel-3-0
$ cvs co -r rel-3-0 java
$ cvs update -j HEAD [file name]
$ cvs commit [file name]
To Determine if you are working on a branch or the main trunck, run the following command
$ cvs status [file name]
The "Sticky Tag" field will tell you whether the file you specified is on a branch or not. It will say "none" if it's on the main trunk.
Run the following command:
$ cvs -q -n update
This will show you which files have been changed in your current directory (and all subdirectories) without actually updating any files. The -n option to cvs always shows you the output from a CVS command without actually performing the command. The -q option stands for "quiet" and makes the output less verbose.
The $HOME/.cvsrc file can be used to set default options
for any of the cvs commands. Below is an example of some settings:
cvs -q
cvs update -d