GNU Info

Info Node: (cvsbook.info)Removing Files

(cvsbook.info)Removing Files


Next: Removing Directories Prev: CVS And Binary Files Up: Other Useful CVS Commands
Enter node , (file) or (file)node

Removing Files
--------------

Removing a file is similar to adding one, except there's an extra step:
You have to remove the file from the working copy first:

     floss$ rm newfile.c
     floss$ cvs remove newfile.c
     cvs remove: scheduling 'newfile.c' for removal
     cvs remove: use 'cvs commit' to remove this file permanently
     floss$ cvs ci -m "removed newfile.c" newfile.c
     Removing newfile.c;
     /usr/local/cvs/myproj/newfile.c,v  <-  newfile.c
     new revision: delete; previous revision: 1.1
     done
     floss$

Notice how, in the second and third commands, we name newfile.c
explicitly even though it doesn't exist in the working copy anymore.  Of
course, in the commit, you don't absolutely need to name the file, as
long as you don't mind the commit encompassing any other modifications
that may have taken place in the working copy.


automatically generated by info2www version 1.2.2.9