CVS Quickstart Guide

From ITTC Help
Revision as of 15:01, 22 September 2006 by Wmason (talk | contribs)
Jump to navigation Jump to search

CVS Usage

The first step is to log into the remote CVS repository. You will need to set your CVSROOT environment variable to the remote pserver connection. For example:

# export CVSROOT=:pserver:username@cvs.ittc.ku.edu:2401/projects/cvs/test
# cvs login
Logging in to :pserver:username@cvs.ittc.ku.edu:2401/projects/cvs/test
CVS password: ******** Checkout Repository

  1. cd /tmp
  2. export CVSROOT=:pserver:username@cvs.ittc.ku.edu:2401/projects/cvs/test
  3. cvs co test
  4. cd test

Check In Changes

  1. cvs co test
  2. cd test
  3. vi file1
  4. cvs ci file1

Importing into Repository

  1. cd /tmp
  2. mkdir test1
  3. cd test1
  4. touch File1
  5. cvs import test1 INITIAL start

Adding Directories

  1. cd /tmp
  2. cvs co test
  3. cd test
  4. mkdir New
  5. cvs add New

Adding Files

  1. cd /tmp
  2. cvs co test
  3. cd test
  4. touch file1
  5. touch file2
  6. cvs add file*
  7. cvs commit -m "Added new files"

Tagging Files

  1. cd /tmp
  2. cvs co test
  3. cd test
  4. cvs tag Stage1 file1

Checkout Tagged Files

  1. cd /tmp
  2. cvs co test
  3. cd test
  4. cvs co -r Stage1 test

Remove Tag from Files

  1. cd /tmp
  2. cvs co test
  3. cd test
  4. cvs tag -d Stage1 file1

Checkout Fresh Copy

  1. cd /tmp
  2. rm -rf test
  3. cvs co test

</nowiki> Additional commands and information can be found in the [CVS Manual].

Mailing List

A mailing list has been created to facilitate better communication between the CVS users and the ITTC system administrators. To request an account, email help@ittc.ku.edu.