Next: , Previous: , Up: CVS commands   [Contents][Index]


A.6 add—Add files and directories to the repository

The add command is used to present new files and directories for addition into the CVS repository. When add is used on a directory, a new directory is created in the repository immediately. When used on a file, only the working directory is updated. Changes to the repository are not made until the commit command is used on the newly added file.

The add command also resurrects files that have been previously removed. This can be done before or after the commit command is used to finalize the removal of files. Resurrected files are restored into the working directory at the time the add command is executed.