Name
commit
Synopsis
cvs [cvs-options
] commit [options
] [files
...]
Commit changes in a sandbox to the repository. Until a
commit
is run, changes such as
modified, new, or removed files are not reflected in the
repository. If no files are listed as arguments, CVS uploads all changes in the current sandbox.
Unless you use either the -m
or
-F
options, commit
invokes an editor to request a
log message.
If there have been changes in the repository version of a
file since it was last synchronized with the repository and the
local version has also changed, you have a
conflict and the file cannot be committed.
You can try to commit the file again once you have updated it
using cvs update
or cvs checkout
. The update will include an
attempt to merge the file.
Synonyms: ci
, com
.
Standard subcommand options: -l
,
-m
, -n
, -r
,
-R
.
Options
-
-f
Force CVS to commit a file even if there have been no changes to the file. This option implies the
-l
option.-
-F
logfile
Read a log message from the specified logfile rather than calling an editor.
Example
/home/arnold/cvs/wizzard$ cvs commit
cvs commit: Examining .
cvs commit: Examining doc
cvs commit: Examining lib
...
RCS file: /var/lib/cvs/wizzard/doc/Design.rtf,v
done
Checking in doc/Design.rtf;
/var/lib/cvs/wizzard/doc/Design.rtf,v <-- Design.rtf
initial revision: 1.1
done
Get Unix in a Nutshell, 4th Edition 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.