CVS Quickstart Guide: Difference between revisions

From ITTC Help
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
== CVS Usage ==
== 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:
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.


<b>Login</b><br>
<nowiki># export CVSROOT=:pserver:username@cvs.ittc.ku.edu:2401/projects/cvs/test</nowiki><br>
<nowiki># export CVSROOT=:pserver:username@cvs.ittc.ku.edu:2401/projects/cvs/test</nowiki><br>
<nowiki># cvs login</nowiki><br>
<nowiki># cvs login</nowiki><br>

Latest revision as of 15:06, 22 September 2006

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.

Login
# 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
# cd /tmp
# export CVSROOT=:pserver:username@cvs.ittc.ku.edu:2401/projects/cvs/test
# cvs co test
# cd test
Check In Changes
# cvs co test
# cd test
# vi file1
# cvs ci file1
Importing into Repository
# cd /tmp
# mkdir test1
# cd test1
# touch File1
# cvs import test1 INITIAL start
Adding Directories
# cd /tmp
# cvs co test
# cd test
# mkdir New
# cvs add New
Adding Files
# cd /tmp
# cvs co test
# cd test
# touch file1
# touch file2
# cvs add file*
# cvs commit -m "Added new files"
Tagging Files
# cd /tmp
# cvs co test
# cd test
# cvs tag Stage1 file1
Checkout Tagged Files
# cd /tmp
# cvs co test
# cd test
# cvs co -r Stage1 test
Remove Tag from Files
# cd /tmp
# cvs co test
# cd test
# cvs tag -d Stage1 file1
Checkout Fresh Copy
# cd /tmp
# rm -rf test
# cvs co test

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.