[ SDF Public Access UNIX System .. Est. 1987 ]

join welcome faq status members store tour gopher abuse dialup minecraft
social tilde europa webmail gallery usermap irc tutorials telnet git ssh
CVS On SDF

CVS On SDF

Table of Contents

1 Introduction

This tutorial is not about using a version control system, or about using cvs, but about how to get started with cvs on SDF

2 Creating A Repository

The cvs repository is just a simple directory. Our repository will be made in our home directory, and we will name it "cvs".

cvs requires that you use an absolute path to the repository. To learn the full path to your home directory type:

 cd; pwd

In the rest of this document you will need to replace '/path/to/homedir/' by the output of the previous command.

Creating our repository is very simple:

  cd  
  mkdir cvs
  cvs -d /path/to/homedir/cvs init 

That's it.

3 Importing A Directory:

Let's add our website into our repository:

  cd html
  cvs -d /path/to/homedir/cvs import -m "initial import" html user start

In this command

You can modify the message, the module name and the tags to your liking, just keep in mind that in the rest of this tutorial we will use 'html' for the module name.

4 Checking It Out

 cd 
 mkdir tmp
 cd tmp
 cvs -d /path/to/homedir/cvs co html

This should be enough to convince ourselves that the directory is now under version control.

5 Accessing It Remotely

We can access our repository from the outside using ssh, to do this we need to set the environment variable CVS_RSH so that cvs will use ssh, using for instance:

 export CVS_RSH=ssh 

And then use for the variable CVS_ROOT, or the -d switch: ':ext:user@freeshell.org:/path/to/homedir/cvs/', where

For instance to check out our html module:

 cvs -d ':ext:user@freeshell.org:/path/to/homedir/cvs' co html

After having made our modifications, we just need to check our changes back in:

 cvs update # if we made some changes elsewhere
 cvs -d  ':ext:user@freeshell.org:/path/to/homedir/cvs' ci html

6 More info on CVS

$Id: cvs_on_sdf.html,v 1.3 2015/01/28 01:01:52 grobe0ba Exp $

©1987-2065 SDF Public Access UNIX System, Inc. 501(c)(7)
(this page was generated using ksh, sed and awk)