1. install cvs on the system.

# aptitude install cvs

2. than you need to create a directory for your cvs (it will use it as a chroot for all of your code).

# mkdir /your/dir/cvsd/

3. set sticky bit permissions for CVSROOT. so everyone can read and write in there, but not delete or rename files.

# chmod 1777 /your/dir/cvsd

4. set CVSROOT so the cvs binary can find it

# export CVSROOT=/your/dir/cvsd

5. initialize cvs

# cvs init

6. now you can import sourcecode to the repository and use it. but be aware that you should not have the code there, where it later should be, because importing it and checking it into the same place can cause problems. -m saves that as a log information, repository is the dir for your code in the CVSROOT, vendortag and releasetag are for identifying the code from the time of the import and branches and so on.

# cvs import -m “”

7. to use cvs locally you can check your code now out. it will be written into the current working directory. (co, checkout and get are all the same)

# cvs co

8. after some coding you can commit your changes with. the option -m bypasses the editor for the description. also you need to commit any addings or deletions or anything else. (checkin, ci and commit are all the same)

# cvs commit

9. adding or deleting files, here the -m option is also available. but it is not recursive, so you will need to point out any file explicit.

# cvs [add|delete]

some extra options are diff, to compare the chanes you have made. with “cvs log source_file” you can see any changes, which were made. after a check out and any other person made changes you can get the new files with “cvs update []”. with update you can also get the file anew from the repository, but delete the local first.



~ by frankooh on 2011-01-21T12:41:39+00:00.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: