Next: , Previous: Adding Files, Up: Other Useful CVS Commands


Adding Directories

Unlike adding a file, adding a new directory is done in one step; there's no need to do a commit afterwards:

     floss$ mkdir c-subdir
     floss$ cvs add c-subdir
     Directory /usr/local/cvs/myproj/c-subdir added to the repository
     floss$

If you look inside the new directory in the working copy, you'll see that a CVS subdirectory was created automatically by add:

     floss$ ls c-subdir
     CVS/
     floss$ ls c-subdir/CVS
     Entries     Repository  Root
     floss$

Now you can add files (or new directories) inside it, as with any other working copy directory.

Karl Fogel wrote this book. Buy a printed copy via his homepage at red-bean.com

copyright  ©  December 14 2019 sean dreilinger url: https://durak.org/sean/pubs/software/cvsbook/Adding-Directories.html