First, you must decide where the repository is to reside. For this example, it's $HOME/cvs.
To create an empty repository, enter the following command:
cvs -d$HOME/cvs init
If you look in $HOME/cvs, you'll see a directory called CVSROOT. It contains internal administrative files for CVS.
The -d option to cvs tells CVS where to find the repository. The init command tells CVS to create a new repository. The -d option is considered a global option, because it appears before the init command. The general format of a CVS command is:
cvs [global options] command [command-specific options] file names
Once you've created the repository, you need to edit these files in the CVSROOT directory:
A user can't be in both files.