Adding Files to the Repository
Use cvs add
to add
a file or directory to the repository. Using cvs add
on a file marks the file as needing to be added when
cvs commit
is run. Running cvs
add on a directory adds the directory to the repository
and the CVS subdirectory to the directory.
The Attic
and CVS
directories
are special directories
that CVS uses for its own purposes. Do not make a file or directory
with these names.
Tip
If you attempt to commit and get an error message that includes
*PANIC* administration files missing
, you may
have created a file or directory named CVS
. This
message means that CVS could not find the
Repository
file in the CVS
subdirectory of the sandbox directory it is trying to commit.
You can use
cvs
remove
to remove a file that has been added but not
committed. This removes the marking in the CVS
subdirectory and doesn’t record the aborted addition
in the repository’s history. Similarly, you can use
cvs add
to abort a file removal; it will
resurrect the file without recording the aborted removal.
The file or directory to be added must exist within the sandbox, and
a directory must not contain a file or subdirectory named
CVS
.
Warning
Files and directories are case-sensitive in the repository. If you are using a CVS client or operating system that is not case-sensitive, you may encounter problems. Avoid using file or directory names that would be the same if case were not an issue.
In the process of adding a file, CVS strips trailing slashes and any special ...
Get Essential CVS now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.