CVS Quickstart Guide: Difference between revisions
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
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. | 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># cvs login</nowiki><br> | |||
<nowiki>Logging in to :pserver:username@cvs.ittc.ku.edu:2401/projects/cvs/test</nowiki><br> | |||
<nowiki>CVS password: ********</nowiki><br> | |||
<b>Checkout Repository</b><br> | |||
<nowiki># cd /tmp</nowiki><br> | |||
<nowiki># export CVSROOT=:pserver:username@cvs.ittc.ku.edu:2401/projects/cvs/test</nowiki><br> | |||
<nowiki># cvs co test</nowiki><br> | |||
<nowiki># cd test</nowiki><br> | |||
<b>Check In Changes</b><br> | |||
<nowiki># cvs co test</nowiki><br> | |||
<nowiki># cd test</nowiki><br> | |||
<nowiki># vi file1</nowiki><br> | |||
<nowiki># cvs ci file1</nowiki><br> | |||
<b>Importing into Repository</b><br> | |||
<nowiki># cd /tmp</nowiki><br> | |||
<nowiki># mkdir test1</nowiki><br> | |||
<nowiki># cd test1</nowiki><br> | |||
<nowiki># touch File1</nowiki><br> | |||
<nowiki># cvs import test1 INITIAL start</nowiki><br> | |||
<b>Adding Directories</b><br> | |||
<nowiki># cd /tmp</nowiki><br> | |||
<nowiki># cvs co test</nowiki><br> | |||
<nowiki># cd test</nowiki><br> | |||
<nowiki># mkdir New</nowiki><br> | |||
<nowiki># cvs add New</nowiki><br> | |||
<b>Adding Files</b><br> | |||
<nowiki># cd /tmp</nowiki><br> | |||
<nowiki># cvs co test</nowiki><br> | |||
<nowiki># cd test</nowiki><br> | |||
<nowiki># touch file1</nowiki><br> | |||
<nowiki># touch file2</nowiki><br> | |||
<nowiki># cvs add file*</nowiki><br> | |||
<nowiki># cvs commit -m "Added new files"</nowiki><br> | |||
<b>Tagging Files</b><br> | |||
<nowiki># cd /tmp</nowiki><br> | |||
<nowiki># cvs co test</nowiki><br> | |||
<nowiki># cd test</nowiki><br> | |||
<nowiki># cvs tag Stage1 file1</nowiki><br> | |||
<b>Checkout Tagged Files</b><br> | |||
<nowiki># cd /tmp</nowiki><br> | |||
<nowiki># cvs co test</nowiki><br> | |||
<nowiki># cd test</nowiki><br> | |||
<nowiki># cvs co -r Stage1 test</nowiki><br> | |||
<b>Remove Tag from Files</b><br> | |||
<nowiki># cd /tmp</nowiki><br> | |||
<nowiki># cvs co test</nowiki><br> | |||
<nowiki># cd test</nowiki><br> | |||
<nowiki># cvs tag -d Stage1 file1</nowiki><br> | |||
<b>Checkout Fresh Copy</b><br> | |||
<nowiki># cd /tmp</nowiki><br> | |||
<nowiki># rm -rf test</nowiki><br> | |||
<nowiki># cvs co test</nowiki><br> | |||
Additional commands and information can be found in the [[http://ximbiot.com/cvs/manual/cvs-1.11.20/cvs.html CVS Manual]]. | Additional commands and information can be found in the [[http://ximbiot.com/cvs/manual/cvs-1.11.20/cvs.html CVS Manual]]. | ||
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.