0% found this document useful (0 votes)
73 views

CVS Quick Reference: A CVS Command Looks Like

Uploaded by

postscript
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PS, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
73 views

CVS Quick Reference: A CVS Command Looks Like

Uploaded by

postscript
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PS, PDF, TXT or read online on Scribd
You are on page 1/ 9

Page 1

CVS | CVS Communication | CVS Documentation | CVS Downloads | Other


Local Projects
Domain
Navigation CVS Quick Reference
? Domain
Home
? CVS Manual A CVS command looks like:
? CVS FAQ
? Hosted cvs [ g l o b a l _ o p t i o n s ] command [ c o m m a n d _ o p t i o n s ] [ c o m m a n d _
Projects
? Hosted
Tools
? Site Help
? SourceCast Global options:
FAQ
? Site Help --allow-root=r o o t d i r
? Feedback Specify legal CVSROOT directory (server only) (not in CVS 1.9 and older).
-a
Login: Authenticate all communication (client only) (not in CVS 1.9 and older).
-b
Password: Specify RCS location (CVS 1.9 and older).
-d r o o t
Specify the CVSROOT.
Login -e e d i t o r
? Not a Edit messages with editor.
member? -f
Register Do not read the `~/.cvsrc' file.
Now -H
--help
Print a help message.
Search: -l
Do not log in CVSROOT/history file.
-n
Do not change any files.
-Q
Be really quiet.
-q
Be somewhat quiet.
-r
Make new working files read-only.
-s v a r i a b l e =v a l u e
Set a user variable.
-T t e m p d i r
Put temporary files in tempdir.
-t
Trace CVS execution.
-v
--version
Display version and copyright information for CVS.
-w
Make new working files read-write.
-x
Encrypt all communication (client only).
-z g z i p - l e v e l
Set the compression level (client only).

Feedback

http://www.cvshome.org/docs/ref.html 15:48:19 30/05/02


Page 2

Keyword expansion modes


-kkv $Id: ref.html,v 1.10 2001/06/15 02:18:18 dprice Exp $
-kkvl $Id: ref.html,v 1.10 2001/06/15 02:18:18 dprice Exp $
-kk $Id: ref.html,v 1.10 2001/06/15 02:18:18 dprice Exp $
-kv info-ref.html,v 1.1 1999/04/14 19:04:02 kingdon Exp
-ko no expansion
-kb no expansion, file is binary

Keywords
$Author: dprice $
$Date: 2001/06/15 02:18:18 $
$Header: /usr/local/tigris/data/helm/cvs/repository/www/www/do
$Id: ref.html,v 1.10 2001/06/15 02:18:18 dprice Exp $
$Locker: $
$Name: $
$RCSfile: ref.html,v $
$Revision: 1.10 $
$Source: /usr/local/tigris/data/helm/cvs/repository/www/www/do
$State: Exp $
$Log: ref.html,v $
Revision 1.10 2001/06/15 02:18:18 dprice
Tidied.

Revision 1.1 1999/04/14 19:04:02 kingdon


By popular demand, want to put the CVS Reference Card on-line.

Commands, command options, and command


add [o p t i o n s ] [f i l e s ...]
Add a new file/directory.

-k k f l a g
Set keyword expansion.
-m msg
Set file description.

http://www.cvshome.org/docs/ref.html 15:48:19 30/05/02


Page 3

admin [o p t i o n s ] [f i l e s ...]
Administration of history files in the repository.

-b[r e v ]
Set default branch.
-cs t r i n g
Set comment leader.
-ks u b s t
Set keyword substitution.
-l[r e v ]
Lock revision rev, or latest revision.
-mr e v :msg
Replace the log message of revision rev with msg.
-or a n g e
Delete revisions from the repository.
-q
Run quietly; do not print diagnostics.
-ss t a t e [:r e v ]
Set the state.
-t
Set file description from standard input.
-tf i l e
Set file description from file.
-t-s t r i n g
Set file description to string.
-u[r e v ]
Unlock revision rev, or latest revision.

annotate [o p t i o n s ] [f i l e s ...]
Show last revision where each line was modified.

-D d a t e
Annotate the most recent revision no later than date.
-f
Use head revision if tag/date not found.
-l
Local; run only in current working directory.
-R
Operate recursively (default).
-r t a g
Annotate revision tag.

checkout [o p t i o n s ] m o d u l e s ...
Get a copy of the sources.

-A
Reset any sticky tags/date/options.
-c
Output the module database.
-D d a t e
Check out revisions as of date (is sticky).
-d d i r
Check out into dir.
-f
Use head revision if tag/date not found.
-j r e v
Merge in changes.
-k k f l a g
Use kflag keyword expansion.
-l
Local; run only in current working directory.
-N
Don't "shorten" module paths if -d specified.
-n

http://www.cvshome.org/docs/ref.html 15:48:19 30/05/02


Page 4

Do not run module program (if any).


-P
Prune empty directories.
-p
Check out files to standard output (avoids stickiness).
-R
Operate recursively (default).
-r t a g
Checkout revision tag (is sticky).
-s
Like -c, but include module status.

commit [o p t i o n s ] [f i l e s ...]
Check changes into the repository.

-F f i l e
Read log message from file.
-f
Force the file to be committed; disables recursion.
-l
Local; run only in current working directory.
-m msg
Use msg as log message.
-n
Do not run module program (if any).
-R
Operate recursively (default).
-r r e v
Commit to rev.

diff [o p t i o n s ] [f i l e s ...]
Show differences between revisions. In addition to the options shown below
example `-c' for context diffs.

-D d a t e 1
Diff revision for date against working file.
-D d a t e 2
Diff rev1/date1 against date2.
-l
Local; run only in current working directory.
-N
Include diffs for added and removed files.
-R
Operate recursively (default).
-r r e v 1
Diff revision for rev1 against working file.
-r r e v 2
Diff rev1/date1 against rev2.

edit [o p t i o n s ] [f i l e s ...]
Get ready to edit a watched file.

-a a c t i o n s
Specify actions for temporary watch, where actions is edit, unedit
-l
Local; run only in current working directory.
-R
Operate recursively (default).

editors [o p t i o n s ] [f i l e s ...]
See who is editing a watched file.

-l
Local; run only in current working directory.

http://www.cvshome.org/docs/ref.html 15:48:19 30/05/02


Page 5

-R
Operate recursively (default).

export [o p t i o n s ] m o d u l e s ...
Export files from CVS.

-D d a t e
Check out revisions as of date.
-d d i r
Check out into dir.
-f
Use head revision if tag/date not found.
-k k f l a g
Use kflag keyword expansion.
-l
Local; run only in current working directory.
-N
Don't "shorten" module paths if -d specified.
-n
Do not run module program (if any).
-P
Prune empty directories.
-R
Operate recursively (default).
-r t a g
Checkout revision tag.

history [o p t i o n s ] [f i l e s ...]
Show repository access history.

-a
All users (default is self).
-b s t r
Back to record with str in module/file/repos field.
-c
Report on committed (modified) files.
-D d a t e
Since date.
-e
Report on all record types.
-l
Last modified (committed or modified report).
-m m o d u l e
Report on module (repeatable).
-n m o d u l e
In module.
-o
Report on checked out modules.
-r r e v
Since revision rev.
-T
Produce report on all TAGs.
-t t a g
Since tag record placed in history file (by anyone).
-u u s e r
For user user (repeatable).
-w
Working directory must match.
-x t y p e s
Report on types, one or more of TOEFWUCGMAR.
-z z o n e
Output for time zone zone.

import [o p t i o n s ] r e p o s i t o r y v e n d o r - t a g r e l e a s e - t a g s ...

http://www.cvshome.org/docs/ref.html 15:48:19 30/05/02


Page 6

Import files into CVS, using vendor branches.

-b b r a
Import to vendor branch bra.
-d
Use the file's modification time as the time of import.
-k k f l a g
Set default keyword substitution mode.
-m msg
Use msg for log message.
-I i g n
More files to ignore (! to reset).
-W s p e c
More wrappers.

init
Create a CVS repository if it doesn't exist.
log [o p t i o n s ] [f i l e s ...]
Print out history information for files.

-b
Only list revisions on the default branch.
-d d a t e s
Specify dates (d1<d2 for range, d for latest before).
-h
Only print header.
-l
Local; run only in current working directory.
-N
Do not list tags.
-R
Only print name of RCS file.
-rr e v s
Only list revisions revs.
-s s t a t e s
Only list revisions with specified states.
-t
Only print header and descriptive text.
-wl o g i n s
Only list revisions checked in by specified logins.

login
Prompt for password for authenticating server.
logout
Remove stored password for authenticating server.
rdiff [o p t i o n s ] m o d u l e s ...
Show differences between releases.

-c
Context diff output format (default).
-D d a t e
Select revisions based on date.
-f
Use head revision if tag/date not found.
-l
Local; run only in current working directory.
-R
Operate recursively (default).
-r r e v
Select revisions based on rev.
-s
Short patch - one liner per file.
-t
Top two diffs - last change made to the file.

http://www.cvshome.org/docs/ref.html 15:48:19 30/05/02


Page 7

-u
Unidiff output format.
-V v e r s
Use RCS Version vers for keyword expansion (obsolete).

release [o p t i o n s ] d i r e c t o r y
Indicate that a directory is no longer in use.

-d
Delete the given directory.

remove [o p t i o n s ] [f i l e s ...]
Remove an entry from the repository.

-f
Delete the file before removing it.
-l
Local; run only in current working directory.
-R
Operate recursively (default).

rtag [o p t i o n s ] t a g m o d u l e s ...
Add a symbolic tag to a module.

-a
Clear tag from removed files that would not otherwise be tagged.
-b
Create a branch named tag.
-D d a t e
Tag revisions as of date.
-d
Delete tag.
-F
Move tag if it already exists.
-f
Force a head revision match if tag/date not found.
-l
Local; run only in current working directory.
-n
No execution of tag program.
-R
Operate recursively (default).
-r r e v
Tag existing tag rev.

status [o p t i o n s ] f i l e s ...
Display status information in a working directory.

-l
Local; run only in current working directory.
-R
Operate recursively (default).
-v
Include tag information for file.

tag [o p t i o n s ] t a g [f i l e s ...]
Add a symbolic tag to checked out version of files.

-b
Create a branch named tag.
-c
Check that working files are unmodified.
-D d a t e

http://www.cvshome.org/docs/ref.html 15:48:19 30/05/02


Page 8

Tag revisions as of date.


-d
Delete tag.
-F
Move tag if it already exists.
-f
Force a head revision match if tag/date not found.
-l
Local; run only in current working directory.
-R
Operate recursively (default).
-r r e v
Tag existing tag rev.

unedit [o p t i o n s ] [f i l e s ...]
Undo an edit command.

-a a c t i o n s
Specify actions for temporary watch, where actions is edit, unedit
-l
Local; run only in current working directory.
-R
Operate recursively (default).

update [o p t i o n s ] [f i l e s ...]
Bring work tree in sync with repository.

-A
Reset any sticky tags/date/options.
-D d a t e
Check out revisions as of date (is sticky).
-d
Create directories.
-f
Use head revision if tag/date not found.
-I i g n
More files to ignore (! to reset).
-j r e v
Merge in changes.
-k k f l a g
Use kflag keyword expansion.
-l
Local; run only in current working directory.
-P
Prune empty directories.
-p
Check out files to standard output (avoids stickiness).
-R
Operate recursively (default).
-r t a g
Checkout revision tag (is sticky).
-W s p e c
More wrappers.

watch [on|off|add|remove] [o p t i o n s ] [f i l e s ...]


on/off: turn on/off read-only checkouts of files. add/remove: add or remove n

-a a c t i o n s
Specify actions for temporary watch, where actions is edit, unedit
-l
Local; run only in current working directory.
-R
Operate recursively (default).

http://www.cvshome.org/docs/ref.html 15:48:19 30/05/02


Page 9

watchers [o p t i o n s ] [f i l e s ...]
See who is watching a file.

-l
Local; run only in current working directory.
-R
Operate recursively (default).
Copyright © 1999-2002 CollabNet, Inc. CollabNet and SourceCast are tradema
All other trademarks or registered trademarks are the property of their respect

http://www.cvshome.org/docs/ref.html 15:48:19 30/05/02

You might also like