The document provides information about the CVS version control system including command line syntax, global options, commands, and keywords. It lists and describes common CVS commands like add, commit, diff, tag, as well as global options and command options.
The document provides information about the CVS version control system including command line syntax, global options, commands, and keywords. It lists and describes common CVS commands like add, commit, diff, tag, as well as global options and command options.
The document provides information about the CVS version control system including command line syntax, global options, commands, and keywords. It lists and describes common CVS commands like add, commit, diff, tag, as well as global options and command options.
The document provides information about the CVS version control system including command line syntax, global options, commands, and keywords. It lists and describes common CVS commands like add, commit, diff, tag, as well as global options and command options.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online from Scribd
Download as pdf or txt
You are on page 1of 2
CVS Quick Reference Card Keywords -A Reset any sticky tags/date/options
Andrew Ford refcards.comTM -c Output the module database
CVS is the Concurrent Versions System, the dominant open-source, $Author$ Login name of the user who checked in the revision -D date Check out revisions as of date (sticky) network-transparent version control system. $Date$ Date and time (UTC) the revision was checked in -d dir Check out into dir $Header$ Standard header with full pathname of file in repos- -f Use head revision if tag/date not found itory -j rev Merge in changes Command Line Syntax $Id$ Standard header with filename of file in repository -k kflag Use kflag keyword expansion cvs [global_opts] command [command_opts] [command_args] $Locker$ Login name of the user who locked the revision -l Local – run only in current working directory $Log$ Log message supplied on commit -N Do not ‘shorten’ module paths if -d specified $Name$ Tag name used to check out the file -n Do not run module program (if any) Global options: -P Prune empty directories $RCSfile$ Name of the file in repository (without path) --allow-root=rootdir -p Check out files to standard output (avoids sticki- Specify legal CVSROOT directory. (server only) $Revision$ Revision number $Source$ Full pathname of file in repository ness) -a Authenticate all communication. (client only) -R Operate recursively (default) -d root Specify the CVSROOT. $State$ State assigned to revision -r tag Checkout revision tag (is sticky) -e editor Edit messages with editor. Keyword expansion modes: -s Like -c, but include module status -f Do not read the ~/.cvsrc file. -kkv Generate keyword strings in default format -H Print a help message. -kkvl Like -kkv except locker’s name is inserted commit [options] [files...] --help ditto -kk Generate only keyword names in keyword strings -l Do not log in CVSROOT/history file. -kv Generate old keyword string present in the working Check changes into the repository. -n Do not change any files. file just before it was checked in. -F file Read log message from file -Q Be really quiet. -ko no expansion -f Force the file to be committed; disables recursion -q Be somewhat quiet. -kb no expansion, file is binary -l Local – run only in current working directory -r Make new working files read-only. -m msg Use msg as log message -s var=value Set a user variable. -n Do not run module program (if any) -T tempdir Put temporary files in tempdir. Commands, command options and arguments -R Operate recursively (default) -t Trace CVS execution. add [options] [files]... -r rev Commit to rev -v Display CVS version and copyright information. --version ditto Adds a new file/directory -k kflag Set keyword expansion diff [options] files... -w Make new working files read-write. -x Encrypt all communication. (client only) -m msg Set file description Show differences between revisions. In addition to the options -z gzip-lvl Set the compression level. (client only) admin [options] [files]... shown below, accepts a wide variety of options to control output CVS Commands Administration of history files in the repository. style, for example -c for context diffs. add Add new files or directories. -b [rev] Set default branch -D date1 Diff revision for date against working file. admin Repository administration. -c string Set comment leader -D date2 Diff rev1/date1 against date2 annotate Disply revision for each line. -k subst Set keyword substitution -l Local – run only in current working directory checkout Check out sources for editing. -l [rev] Lock revision rev, or latest revision -N Include diffs for added and removed files commit Commit changes into repository. -m rev:msg replace the log message of revision rev with msg -R Operate recursively (default) diff Show differences between revisions. -o range Delete revisions from the repository. -r rev1 Diff revision for rev1 against working file edit Prepare to edit a file being watched. -q Run quietly; do not print diagnostics. -r rev2 Diff rev1/date1 against rev2 editors List users working on a file. -s Set the state. export Export files from CVS. state[:rev] edit [options] [files...] history Show repository access history. -t Set file description from standard input import Import files into CVS. -t file Set file description from file Get ready to edit a watched file. init Create a CVS repository if none exists. -t -string Set file description to string -a actions Specify actions for temporary watch, where log Print log information for files. -u [rev] Unlock revision rev, or latest revision actions is edit, unedit, commit, all, or none login Prompt for password for client access. -l Local – run only in current working directory logout Removed stored password. annotate [options] files... -R Operate recursively (default) rdiff Show differences between releases. Show last revision where each line was modified. release Indicate that a directory is no longer in use. -D date Annotate the most recent revision no later than editors [options] [files...] remove Remove an entry from the repository. date rtag Add a symbolic tag to a module. -f Use head revision if tag/date not found See who is editing a watched file. status Display status information. -l Local – run only in current working directory -l Local – run only in current working directory tag Add a symbolic tag to checked-out files. -R Operate recursively (default) -R Operate recursively (default) unedit Undo an edit command. -r tag Annotate revision tag update Bring work tree into sync with repository. export [options] modules... watch Tell CVS to provide notifications. checkout [options] modules... watchers List who is watching a file. Get a copy of the sources. Export files from CVS. 1 2 3 -D date Check out revisions as of date login unedit [options] [files...] -d dir Check out into dir Prompt for password for authenticating server. Undo an edit command. -f Use head revision if tag/date not found. -a actions Specify actions for temporary watch, where ac- -k kflag Use kflag keyword expansion logout tions is edit, unedit, commit, all, or none. -l Local – run only in current working directory Remove stored password for authenticating server. -l Local – run only in current working directory. -N Do not “shorten” module paths if -d specified rdiff [options] modules... -R Operate recursively (default). -n Do not run module program (if any) Show differences between releases. -P Prune empty directories update [options] [files...] -c Context diff output format (default) Bring work tree in sync with repository. -R Operate recursively (default) -D date Select revisions based on date -r tag Checkout revision tag -A Reset any sticky tags/date/options. -f Use head revision if tag/date not found -D date Check out revisions as of date (is sticky). history [options] [files...] -l Local – run only in current working directory -d Create directories. -R Operate recursively (default) -f Use head revision if tag/date not found. Show repository access history. -r rev Select revisions based on rev -a All users (default is self ) -I ign More files to ignore (! to reset). -s Short patch – one liner per file -j rev Merge in changes. -b str Back to record with str in module/file/repos field -t Top two diffs – last change made to the file -c Report on committed (modified) files -k kflag Use kflag keyword expansion. -u Unidiff output format -l Local – run only in current working directory. -D date Since date -e Report on all record types release [options] directory -P Prune empty directories. -l Last modified (committed or modified report) Indicate that a directory is no longer in use. -p Check out files to standard output (avoids sticki- -m module Report on module (repeatable) -d Delete the given directory ness). -n module In module remove [options] [files...] -R Operate recursively (default). -o Report on checked out modules -r tag Checkout revision tag (is sticky). Remove an entry from the repository. -W spec More wrappers. -r rev Since revision rev -f Delete the file before removing it -T Produce report on all tags -l Local – run only in current working directory watch {on|off|add|remove} [options] [files...] -t tag Since tag record placed in history file (by anyone) -R Operate recursively (default) Set notifications for files. -u user For user user (repeatable) {on|off} Turn on/off read-only checkouts of files. -w Working directory must match rtag [options] tag modules... {add|remove} Add or remove notification on actions. -x types Report on types, one or more of TOEFWUCGMAR Add a symbolic tag to a module. -a actions Specify actions for temporary watch, where ac- -z zone Output for time zone zone -a Clear tag from removed files that would not other- tions is edit, unedit, commit, all, or none. wise be tagged -l Local – run only in current working directory. import [options] repository vendor-tag release- -b Create a branch named tag tags... -R Operate recursively (default). -D date Tag revisions as of date Import files into CVS, using vendor branches. -d Delete tag watchers [options] [files...] -b branch Import to vendor branch branch -F Move tag if it already exists See who is watching a file. -d Use the file’s modification time as the time of im- -f Force a head revision match if tag/date not found -l Local – run only in current working directory. port. -l Local – run only in current working directory -R Operate recursively (default). -k kflag Set default keyword substitution mode -n No execution of tag program Resources -m msg Use msg for log message -R Operate recursively (default) http://www.cvshome.com CVS home page -I ign More files to ignore (! to reset) -r rev Tag existing tag rev http://www.refcards.com Quick reference cards -W spec More wrappers status [options] files... init Display status information in a working directory. Create a CVS repository if it doesn’t exist. -l Local – run only in current working directory. -R Operate recursively (default). log [options] [files...] -v Include tag information for file. Print out history information for files. tag [options] tag [files...] CVS Quick Reference Card -b Only list revisions on the default branch. Add a symbolic tag to checked out version of files. Revision 0.1 (draft) for CVS version 1.10 [October 2000] -d dates Specify dates (d1 ¡ d2 for range, d for latest before) -b Create a branch named tag. A refcards.comTM quick reference card -h Only print header -c Check that working files are unmodified. The content of this card is in the public domain. -l Local – run only in current working directory -D date Tag revisions as of date. Design
c 2000 Ford & Mason Ltd. All rights reserved. -N Do not list tags -d Delete tag. Permission is granted to print and duplicate this card for personal or indi- -R Only print name of RCS file -F Move tag if it already exists. vidual, internal business use. Copies of this card (& others) can be ordered -r revs Only list revisions revs -f Force a head revision match if tag/date not found. through our web site: http://www.refcards.com, which also has versions -s states Only list revisions with specified states. -l Local – run only in current working directory. available for downloading. -t Only print header and descriptive text -R Operate recursively (default). Please send feedback to: feedback@refcards.com -w logins Only list revisions checked in by specified logins -r rev Tag existing tag rev. refcards.com is a trademark of Ford & Mason Ltd.