Monday, March 17, 2008

Logging into a CVS Repository in Unix


Logging into a CVS Repository in Unix

Local Repository
With a local CVS Repository, you simply need to set your CVSROOT environment variable to the location of the CVS Repository as in the following example:
% CVSROOT=/var/lib/cvsroot
% export CVSROOT


Remote Repository

% CVSROOT=:pserver:<username>@<computername>:<repository>

Login to a remote CVS repository using the :pserver: protocol. The CVS server is named alex and my user name is oracle. Keep in mind that I needed to first create the local user, oracle, on the CVS host. (Which, again, in this example is named alex.)
% CVSROOT=:pserver:oracle@alex:/var/lib/cvsroot  
% cvs login Logging in to :pserver:oracle@alex:/var/lib/cvsroot CVS password: *******


0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home