CVS commands Top Administrative files
This appendix describes how to invoke CVS, with
references to where each command or feature is
described in detail. For other references run the
cvs --help
command, or see Index.
A CVS command looks like:
cvs [ global_options ] command [ command_options ] [ command_args ]
Global options:
--allow-root=rootdir
|
Specify legal CVSROOT directory (server only) (not in CVS 1.9 and older). See Password authentication server. |
-a
|
Authenticate all communication (client only) (not in CVS 1.9 and older). See Global options. |
-b
|
Specify RCS location (CVS 1.9 and older). See Global options. |
-d root
|
Specify the CVSROOT. See Repository. |
-e editor
|
Edit messages with editor. See Committing your changes. |
-f
|
Do not read the ` |
-H
--help
|
Print a help message. See Global options. |
-l
|
Do not log in CVSROOT/history file. See Global options. |
-n
|
Do not change any files. See Global options. |
-Q
|
Be really quiet. See Global options. |
-q
|
Be somewhat quiet. See Global options. |
-r
|
Make new working files read-only. See Global options. |
-s variable=value
|
Set a user variable. See Variables. |
-T tempdir
|
Put temporary files in tempdir. See Global options. |
-t
|
Trace CVS execution. See Global options. |
-v
| |
--version
|
Display version and copyright information for CVS. |
-w
|
Make new working files read-write. See Global options. |
-x
|
Encrypt all communication (client only). See Global options. |
-z gzip-level
|
Set the compression level (client only). |
Keyword expansion modes (see Substitution modes):
-kkv $Id: file1,v 1.1 1993/12/09 03:21:13 joe Exp $ -kkvl $Id: file1,v 1.1 1993/12/09 03:21:13 joe Exp harry $ -kk $Id$ -kv file1,v 1.1 1993/12/09 03:21:13 joe Exp -ko no expansion -kb no expansion, file is binary
Keywords (see Keyword list):
$Author: joe $ $Date: 1993/12/09 03:21:13 $ $Header: /home/files/file1,v 1.1 1993/12/09 03:21:13 joe Exp harry $ $Id: file1,v 1.1 1993/12/09 03:21:13 joe Exp harry $ $Locker: harry $ $Name: snapshot_1_14 $ $RCSfile: file1,v $ $Revision: 1.1 $ $Source: /home/files/file1,v $ $State: Exp $ $Log: file1,v $ Revision 1.1 1993/12/09 03:30:17 joe Initial revision
Commands, command options, and command arguments:
add [options] [files...]
|
Add a new file/directory. See Adding files.
| ||||||||||||||||||||||||||||||||
admin [options] [files...]
|
Administration of history files in the repository. See admin.
| ||||||||||||||||||||||||||||||||
annotate [options] [files...]
|
Show last revision where each line was modified. See annotate.
| ||||||||||||||||||||||||||||||||
checkout [options] modules...
|
Get a copy of the sources. See checkout.
| ||||||||||||||||||||||||||||||||
commit [options] [files...]
|
Check changes into the repository. See commit.
| ||||||||||||||||||||||||||||||||
diff [options] [files...]
|
Show differences between revisions. See diff.
In addition to the options shown below, accepts a wide
variety of options to control output style, for example
`
| ||||||||||||||||||||||||||||||||
edit [options] [files...]
|
Get ready to edit a watched file. See Editing files.
| ||||||||||||||||||||||||||||||||
editors [options] [files...]
|
See who is editing a watched file. See Watch information.
| ||||||||||||||||||||||||||||||||
export [options] modules...
|
Export files from CVS. See export.
| ||||||||||||||||||||||||||||||||
history [options] [files...]
|
Show repository access history. See history.
| ||||||||||||||||||||||||||||||||
import [options] repository vendor-tag release-tags...
|
Import files into CVS, using vendor branches. See import.
| ||||||||||||||||||||||||||||||||
init
|
Create a CVS repository if it doesn't exist. See Creating a repository. | ||||||||||||||||||||||||||||||||
log [options] [files...]
|
Print out history information for files. See log.
| ||||||||||||||||||||||||||||||||
login
|
Prompt for password for authenticating server. See Password authentication client. | ||||||||||||||||||||||||||||||||
logout
|
Remove stored password for authenticating server. See Password authentication client. | ||||||||||||||||||||||||||||||||
rdiff [options] modules...
|
Show differences between releases. See rdiff.
| ||||||||||||||||||||||||||||||||
release [options] directory
|
Indicate that a directory is no longer in use. See release.
| ||||||||||||||||||||||||||||||||
remove [options] [files...]
|
Remove an entry from the repository. See Removing files.
| ||||||||||||||||||||||||||||||||
rtag [options] tag modules...
|
Add a symbolic tag to a module. See rtag.
| ||||||||||||||||||||||||||||||||
status [options] files...
|
Display status information in a working directory. See File status.
| ||||||||||||||||||||||||||||||||
tag [options] tag [files...]
|
Add a symbolic tag to checked out version of files. See tag.
| ||||||||||||||||||||||||||||||||
unedit [options] [files...]
|
Undo an edit command. See Editing files.
| ||||||||||||||||||||||||||||||||
update [options] [files...]
|
Bring work tree in sync with repository. See update.
| ||||||||||||||||||||||||||||||||
watch [on|off|add|remove] [options] [files...]
|
on/off: turn on/off read-only checkouts of files. See Setting a watch. add/remove: add or remove notification on actions. See Getting Notified.
| ||||||||||||||||||||||||||||||||
watchers [options] [files...]
|
See who is watching a file. See Watch information.
|