Contents /
Previous /
Next
Modifying the Repository: Add, Remove, Rename
add: Add Files to a CVS Repository
Use the add command to enroll new files in cvs records
of your working directory. The files will be added to the repository
the next time you run commit.
Note: You should use the import
command to bootstrap new sources into the source repository.
add is only used for new files to an already checked-out module.
remove: Removing Files and Directories
To remove a file, but remain able to retrieve old revisions,
do the following:
-
Make sure that you have not made any uncommitted modifications to
the file (to check this use diff, status or update).
-
Remove the file from your working copy of the directory. You can
for instance use the shell command rm.
-
Apply `cvs remove FILENAME' to tell CVS that you really want to
delete the file.
-
Use `cvs commit FILENAME' to actually perform the removal of the
file from the repository.
Removing directories:
Removing directories is similar to removing files.
You remove all the files in it.
But you do not remove the directory itself; there is no way to do that.
Instead you specify the `-P' option to `cvs update' or `cvs checkout',
which will cause CVS to remove empty directories from working
directories.