31.4. Using the CVS Server

Once your server is running, CVS clients can connect to it using a repository path like :pserver:username@hostname:repository. Naturally, username must be replaced with the name of a user that the CVS server accepts, hostname with the hostname of your system, and repository with the correct repository directory.

To check out a directory, you could run commands like:

CVSROOT=:pserver:[email protected]:/usr/local/cvsroot
export CVSROOT
cvs login
cvs checkout path/to/directory

The cvs login command should only be run if the server requires a password for the username. It will prompt you for a password, which is permanently stored in the file ~/.cvspass for use by other CVS commands in the future. Any time the cvs command is run to update, check out, commit to, or access the repository in any way, it will make a connection to the server specified in the CVSROOT environment variable and log in with the username from the variable and the specified password.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.89.85