The add Command
The add command adds files and directories to the CVS repository. To add a file to the repository, you need to
use the commit command. For example, to add the new.txt file to the CVS repository, use the following
syntax:
$ cvs add new.txt
$ cvs commit –m "New text file" new.txt
Note To add a directory, create the directory using mkdir. Use the add command to add the
directory. A CVS subdirectory is automatically created within every directory added to a repository.
To add a binary file, you need to use the –kb command option. For example, to add a binary file, new.gif, the
code is:
$ cvs add –kb new.gif
$ cvs commit –m "New binary file" new.gif