This page is under construction!
Quick CVS Introduction
Creating a Repository
You can create a cvs repository in your home directory:
cvs -d ~/cvsroot init
You will probabably want to modify your .profile file to contain the cvsroot and cvseditor variables.
export CVSROOT=$HOME/cvsroot export CVSEDITOR=vi
Importing a Project
When you import a directory into your cvs repository, it becomes a module. Assume that you would like to import directory ~/project1 into your repository created above.
cd ~/project1 cvs -d ~/cvsroot myproject yourname start
This tells cvs to store your project1 directory in the repository under the name myproject. When you checkout myproject later, it will create a myproject folder. 'yourname' and 'start' are unimportant - they are vendor and version labels, respectively.
Any repository that you create will be owned by your and your [default] group. Only members of your group will be able to access your repository. For instance, if you are a member of csfaculty and create a repository, a student belonging to csgrads would not have the permissions to access your repository.
CVS only allows files to be controlled on a per directory basis, not on an individual one.
Possible solutions include:
- Setting up a unix group containing the people who should be able to access the repository, and then ensure that the repository directory is owned by that group.
- Hosting your repository remotely on the pserver and setting up accounts for those who need access
Email root to help set you up.
Collaborating with People Outside the Department
If you want people outside the department to have access to your repository, then you will need to host it remotely on the pserver.