Go forward to Administrative files.
Go backward to CVS commands.
Go up to Top.
Quick reference to CVS commands
*******************************
This appendix describes how to invoke CVS, with references to where
each command or feature is described in detail. Other relevant
references are the `--help'/`-H' option to CVS (*note Global
options::.) and See Index.
`add [OPTIONS] [FILES...]'
Add a new file/directory. See See Adding files.
`-k KFLAG'
Set keyword expansion.
`-m MSG'
Set file description.
`admin [OPTIONS] [FILES...]'
Administration of history files in the repository. See
See admin.
`-b[REV]'
Set default branch.
`-cSTRING'
Set comment leader.
`-kSUBST'
Set keyword substitution. See See Keyword substitution.
`-l[REV]'
Lock revision REV, or latest revision.
`-mREV:MSG'
Replace the log message of revision REV with MSG.
`-oRANGE'
Delete revisions from the history files
`-q'
Run quietly; do not print diagnostics.
`-sSTATE[:REV]'
Set the state.
`-t'
Set file description from standard input.
`-tFILE'
Set file description from FILE.
`-t-STRING'
Set file description to STRING.
`-u[REV]'
Unlock revision REV, or latest revision.
`annotate [OPTIONS] [FILES...]'
Show last revision where each line was modified. See
See annotate.
`-D DATE'
Annotate the most recent revision no later than DATE. See
See Common options.
`-f'
Use head revision if tag/date not found. See *Note Common
options::.
`-l'
Local; run only in current working directory.
See Recursive behavior.
`-R'
Operate recursively (default). See Recursive behavior.
`-r TAG'
Annotate revision TAG. See See Common options.
`checkout [OPTIONS] MODULES...'
Get a copy of the sources. See See checkout.
`-A'
Reset any sticky tags/date/options. See See Sticky tags
and See Keyword substitution.
`-c'
Output the module database. See See checkout options.
`-D DATE'
Check out revisions as of DATE (is sticky). See *Note Common
options::.
`-d DIR'
Check out into DIR. See See checkout options.
`-f'
Use head revision if tag/date not found. See *Note Common
options::.
`-j REV'
Merge in changes. See See checkout options.
`-k KFLAG'
Use KFLAG keyword expansion. See See Substitution modes.
`-l'
Local; run only in current working directory.
See Recursive behavior.
`-N'
Don't shorten module paths if -d specified. See
See checkout options.
`-n'
Do not run module program (if any). See *Note checkout
options::.
`-P'
Prune empty directories. See See Moving directories.
`-p'
Check out files to standard output (avoids stickiness). See
See checkout options.
`-R'
Operate recursively (default). See Recursive behavior.
`-r TAG'
Checkout revision TAG (is sticky). See *Note Common
options::.
`-s'
Like -c, but include module status. See *Note checkout
options::.
`commit [OPTIONS] [FILES...]'
Check changes into the repository. See See commit.
`-F FILE'
Read log message from FILE. See See commit options.
`-f'
Force the file to be committed; disables recursion. See
See commit options.
`-l'
Local; run only in current working directory. See
See Recursive behavior.
`-m MSG'
Use MSG as log message. See See commit options.
`-n'
Do not run module program (if any). See *Note commit
options::.
`-R'
Operate recursively (default). See Recursive behavior.
`-r REV'
Commit to REV. See See commit options.
`diff [OPTIONS] [FILES...]'
Show differences between revisions. See See diff. In
addition to the options shown below, accepts a wide variety of
options to control output style, for example `-c' for context
diffs.
`-D DATE1'
Diff revision for date against working file. See *Note diff
options::.
`-D DATE2'
Diff REV1/DATE1 against DATE2. See See diff options.
`-l'
Local; run only in current working directory. See
See Recursive behavior.
`-N'
Include diffs for added and removed files. See *Note diff
options::.
`-R'
Operate recursively (default). See Recursive behavior.
`-r REV1'
Diff revision for REV1 against working file. See *Note diff
options::.
`-r REV2'
Diff rev1/date1 against rev2. See See diff options.
`edit [OPTIONS] [FILES...]'
Get ready to edit a watched file. See See Editing files.
`-a ACTIONS'
Specify actions for temporary watch, where ACTIONS is `edit',
`unedit', `commit', `all', or `none'. See *Note Editing
files::.
`-l'
Local; run only in current working directory. See
See Recursive behavior.
`-R'
Operate recursively (default). See Recursive behavior.
`editors [OPTIONS] [FILES...]'
See who is editing a watched file. See See Watch information.
`-l'
Local; run only in current working directory. See
See Recursive behavior.
`-R'
Operate recursively (default). See Recursive behavior.
`export [OPTIONS] MODULES...'
Export files from CVS. See See export.
`-D DATE'
Check out revisions as of DATE. See See Common options.
`-d DIR'
Check out into DIR. See See export options.
`-f'
Use head revision if tag/date not found. See *Note Common
options::.
`-k KFLAG'
Use KFLAG keyword expansion. See See Substitution modes.
`-l'
Local; run only in current working directory.
See Recursive behavior.
`-N'
Don't shorten module paths if -d specified. See *Note export
options::.
`-n'
Do not run module program (if any). See *Note export
options::.
`-P'
Prune empty directories. See See Moving directories.
`-R'
Operate recursively (default). See Recursive behavior.
`-r TAG'
Checkout revision TAG (is sticky). See *Note Common
options::.
`history [OPTIONS] [FILES...]'
Show repository access history. See See history.
`-a'
All users (default is self). See See history options.
`-b STR'
Back to record with STR in module/file/repos field. See
See history options.
`-c'
Report on committed (modified) files. See *Note history
options::.
`-D DATE'
Since DATE. See See history options.
`-e'
Report on all record types. See See history options.
`-l'
Last modified (committed or modified report). See
See history options.
`-m MODULE'
Report on MODULE (repeatable). See See history options.
`-n MODULE'
In MODULE. See See history options.
`-o'
Report on checked out modules. See See history options.
`-r REV'
Since revision REV. See See history options.
`-T'
Produce report on all TAGs. See See history options.
`-t TAG'
Since tag record placed in history file (by anyone). See
See history options.
`-u USER'
For user USER (repeatable). See See history options.
`-w'
Working directory must match. See See history options.
`-x TYPES'
Report on TYPES, one or more of `TOEFWUCGMAR'. See
See history options.
`-z ZONE'
Output for time zone ZONE. See See history options.
`import [OPTIONS] REPOSITORY VENDOR-TAG RELEASE-TAGS...'
Import files into CVS, using vendor branches. See See import.
`-b BRA'
Import to vendor branch BRA. See *Note Multiple vendor
branches::.
`-d'
Use the file's modification time as the time of import. See
See import options.
`-k KFLAG'
Set default RCS keyword substitution mode. See *Note import
options::.
`-m MSG'
Use MSG for log message. See See import options.
`-I IGN'
More files to ignore (! to reset). See *Note import
options::.
`-W SPEC'
More wrappers. See See import options.
`init'
Create a CVS repository if it doesn't exist. See *Note Creating a
repository::.
`log [OPTIONS] [FILES...]'
Print out history information for files. See See log.
`-b'
Only list revisions on the default branch. See *Note log
options::.
`-d DATES'
Specify dates (D1<D2 for range, D for latest before). See
See log options.
`-h'
Only print header. See See log options.
`-l'
Local; run only in current working directory. See
See Recursive behavior.
`-N'
Do not list tags. See See log options.
`-R'
Only print name of RCS file. See See log options.
`-r REVS'
Only list revisions REVS. See See log options.
`-s STATES'
Only list revisions with specified states. See *Note log
options::.
`-t'
Only print header and descriptive text. See *Note log
options::.
`-w LOGINS'
Only list revisions checked in by specified logins. See
See log options.
`login'
Prompt for password for authenticating server. See *Note Password
authentication client::.
`logout'
Remove stored password for authenticating server. See
See Password authentication client.
`rdiff [OPTIONS] MODULES...'
Show differences between releases. See See rdiff.
`-c'
Context diff output format (default). See *Note rdiff
options::.
`-D DATE'
Select revisions based on DATE. See See Common options.
`-f'
Use head revision if tag/date not found. See *Note Common
options::.
`-l'
Local; run only in current working directory. See
See Recursive behavior.
`-R'
Operate recursively (default). See Recursive behavior.
`-r REV'
Select revisions based on REV. See See Common options.
`-s'
Short patch - one liner per file. See See rdiff options.
`-t'
Top two diffs - last change made to the file. See *Note diff
options::.
`-u'
Unidiff output format. See See rdiff options.
`-V VERS'
Use RCS Version VERS for keyword expansion. See *Note rdiff
options::.
`release [OPTIONS] DIRECTORY'
Indicate that a directory is no longer in use. See
See release.
`-d'
Delete the given directory. See See release options.
`remove [OPTIONS] [FILES...]'
Remove an entry from the repository. See See Removing files.
`-f'
Delete the file before removing it. See *Note Removing
files::.
`-l'
Local; run only in current working directory. See
See Recursive behavior.
`-R'
Operate recursively (default). See Recursive behavior.
`rtag [OPTIONS] TAG MODULES...'
Add a symbolic tag to a module. See See rtag.
`-a'
Clear tag from removed files that would not otherwise be
tagged. See See rtag options.
`-b'
Create a branch named TAG. See See rtag options.
`-D DATE'
Tag revisions as of DATE. See See rtag options.
`-d'
Delete the given tag. See See rtag options.
`-F'
Move tag if it already exists. See See rtag options.
`-f'
Force a head revision match if tag/date not found. See
See rtag options.
`-l'
Local; run only in current working directory. See
See Recursive behavior.
`-n'
No execution of tag program. See See rtag options.
`-R'
Operate recursively (default). See Recursive behavior.
`-r TAG'
Tag existing tag TAG. See See rtag options.
`status [OPTIONS] FILES...'
Display status information in a working directory. See *Note File
status::.
`-l'
Local; run only in current working directory. See
See Recursive behavior.
`-R'
Operate recursively (default). See Recursive behavior.
`-v'
Include tag information for file. See See Tags.
`tag [OPTIONS] TAG [FILES...]'
Add a symbolic tag to checked out version of files. See
See tag.
`-b'
Create a branch named TAG. See See tag options.
`-D DATE'
Tag revisions as of DATE. See See tag options.
`-d'
Delete the given tag. See See tag options.
`-F'
Move tag if it already exists. See See tag options.
`-f'
Force a head revision match if tag/date not found. See
See tag options.
`-l'
Local; run only in current working directory. See
See Recursive behavior.
`-n'
No execution of tag program. See See tag options.
`-R'
Operate recursively (default). See Recursive behavior.
`-r TAG'
Tag existing tag TAG. See See tag options.
`unedit [OPTIONS] [FILES...]'
Undo an edit command. See See Editing files.
`-a ACTIONS'
Specify actions for temporary watch, where ACTIONS is `edit',
`unedit', `commit', `all', or `none'. See *Note Editing
files::.
`-l'
Local; run only in current working directory. See
See Recursive behavior.
`-R'
Operate recursively (default). See Recursive behavior.
`update [OPTIONS] [FILES...]'
Bring work tree in sync with repository. See See update.
`-A'
Reset any sticky tags/date/options. See See Sticky tags
and See Keyword substitution.
`-D DATE'
Check out revisions as of DATE (is sticky). See *Note Common
options::.
`-d'
Create directories. See See update options.
`-f'
Use head revision if tag/date not found. See *Note Common
options::.
`-I IGN'
More files to ignore (! to reset). See *Note import
options::.
`-j REV'
Merge in changes. See See update options.
`-k KFLAG'
Use KFLAG keyword expansion. See See Substitution modes.
`-l'
Local; run only in current working directory.
See Recursive behavior.
`-P'
Prune empty directories. See See Moving directories.
`-p'
Check out files to standard output (avoids stickiness). See
See update options.
`-R'
Operate recursively (default). See Recursive behavior.
`-r TAG'
Checkout revision TAG (is sticky). See *Note Common
options::.
`-W SPEC'
More wrappers. See See import options.
`watch [on|off|add|remove] [OPTIONS] [FILES...]'
on/off: turn on/off read-only checkouts of files. See
See Setting a watch.
add/remove: add or remove notification on actions. See
See Getting Notified.
`-a ACTIONS'
Specify actions for temporary watch, where ACTIONS is `edit',
`unedit', `commit', `all', or `none'. See *Note Editing
files::.
`-l'
Local; run only in current working directory. See
See Recursive behavior.
`-R'
Operate recursively (default). See Recursive behavior.
`watchers [OPTIONS] [FILES...]'
See who is watching a file. See See Watch information.
`-l'
Local; run only in current working directory. See
See Recursive behavior.
`-R'
Operate recursively (default). See Recursive behavior.