Name
add — Synonyms: ad
, new
Synopsis
cvs [cvs-options
] add [-kmode
] [-mmessage
]files
Adds a file or directory to the repository. This command can also be used to undo an uncommitted file deletion or to restore a deleted file. Remember, you must commit any added files in order for the addition to fully take effect.
Command options
-
-k mode
Add a file or files with the designated keyword-expansion mode. This option also sets the default keyword mode for the file. If you forget to set the default keyword mode with
cvs add
, you can do so later withcvs admin
.The keyword-expansion modes are listed in Section 11.6 of Chapter 11.
-
-m message
Use the specified
message
as the description of the newly added file. The description is shown incvs log
output.
Example
bash-2.05a$ cvs add Design.rtf
cvs server: scheduling file `Design.rtf' for addition
cvs server: use 'cvs commit' to add this file permanently
Get Essential CVS now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.