CVS command syntax
The following is just a basic outline of the cvs syntax and commands with regards to the cvs user. For more information please consult the man page and/or the cvs website: www.cvshome.org.
The CVS command syntax is as follow:
cvs global options command command options
The global options are used when you want cvs to override a currently set environmental variable. For instance, the -d flag will override whatever the value of CVSROOT is. For instance:
If CVSROOT=/var/cvs/killerapp and you issue the following:
cvs -d thelinuxlink.net:/storage/cvs checkout lvlug
cvs will use the value specified by the -dflag to override the environmental variable CVSROOT (which specifies the global cvs repository location) and set the repository location from /var/cvs on the local machine to /storage/cvs on the remote machine thelinuxlink.net.
CVS commands
The following list of commands are enough to get you started with using cvs so that you can become an active contributer to the lvlug website. Understand that there are more commands than this and we will not delve into the full capability of these commands. Therefore, I encourage you to read the man pages and other documentation (i.e.; www.cvshome.org).
- checkout: Checout the cvs files from the repository to the sandbox (typically the current directory).
- add: Adds new files/directories to the repository when commit is issued.
- remove: Removes files/directories from the repository when commit is issued.
- update: Updates the sandbox from the repository synchronizing the files in the sandbox with any changed files in the repository.
- commit: Commits changes made in the sandbox to the repository.
We will now look at these commands individually in a tutorial.