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

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
     floss$ ls c-subdir/CVS
     Entries     Repository  Root

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

copyright  ©  July 14 2020 sean dreilinger url: