Home Computers Concurrent Versions System Creating a CVS Repository
Creating a CVS Repository PDF Print E-mail
Written by Gordon Tillman   
Sunday, 30 November 2008 17:40

Creating a Repository

Take the following steps to setup a location for your cvs repository. For internal use you do not have to be terribly concerned about security. If you are going to have multiple people accessing the repository with read/write access, I recommend that you set the group of the main repository directory to be that of a group that all users that need access belong to. Then be sure and set that directory's SGID bit to ensure that any new files or directories created in the directory are created with the same group ID. In the example below I'm going to assume you have created a group called cvs.

For a lot more information about the configuration and use of CVS, please see this page.

  1. Decide where you want to keep the repository. For this example, I choose the location /Users/Shared/cvs-repository
  2. Create the directory mkdir /Users/Shared/cvs-repository
  3. Set the group of the directory chgrp cvs /Users/Shared/cvs-repository
  4. Set the SGID bit if the directory chmod g+s /Users/Shared/cvs-repository
  5. Initialize the repository cvs -d /Users/Shared/cvs-repository init
Last Updated on Thursday, 04 December 2008 19:46