Cvs: Difference between revisions

From Hackepedia
Jump to navigationJump to search
No edit summary
 
 
Line 1: Line 1:
== Creating your first cvs repository ==
== Creating a repository ==


We'll place our example repository in /usr/project, which doesn't exist yet:
We'll place our example repository in /usr/project, which doesn't exist yet:

Latest revision as of 19:02, 18 May 2006

Creating a repository

We'll place our example repository in /usr/project, which doesn't exist yet:

mkdir /usr/project

normally you want to define CVSROOT as an environment variable, but that is shell specific, so:

cvs -d /usr/project init

and that's it! Take a look and you'll see it's already setup:

ls -l /usr/project

Now we'll want to import some files into the repository. We don't have any yet, so we'll create a directory:

touch /usr/bilderburg
cd /usr/bilderburg

and assuming we have adequate permissions:

cvs import myfirstproject devel beta 

where you'll be asked to create an initial log. Once that is done, assuming all went well you should see:

No conflicts created by this import