Using a Local Version of CVS
In some cases, you may be developing on the same machine as the CVS server. In this case, you can simply set the CVSROOT environment variable to the absolute path of the CVS Repository. For example:Using the :pserver: Protocol% CVSROOT=/var/lib/cvsroot
% export CVSROOT
To use the :pserver: protocol, set your CVSROOT environment variable to:% CVSROOT=:pserver:The following example, I will logging in to CVS using the :pserver: protocol (possibly from another machine). The CVS server is named alex and my user name is amareshcd. Keep in mind that I needed to first create the local user, amareshcd, on the CVS host. (Which, again, in this example is named alex.)@ : % CVSROOT=:pserver:amareshcd@alex:/var/lib/cvsrootTo logout from CVS, use the following:
% export CVSROOT
% cvs login
Logging in to :pserver:amareshcd@alex:2401/var/lib/cvsroot
CVS password:*******% cvs logout
(Logging out of :pserver:amareshcd@alex:2401/var/lib/cvsroot)
No comments:
Post a Comment