CVS

From Ben's Writing

Jump to: navigation, search

Tips

Synonyms

CVS commands have synonyms: so cvs ci can be used instead of cvs commit. Most CVS commands haveshort forms, to make typing easier. For the checkout, update, and commit commands, the abbreviated versions are co, up, and ci, respectively. You can get a list of all of the short forms by running the command cvs —help-synonyms.

$ cvs --help-synonyms
CVS command synonyms are:
        add          ad new
        admin        adm rcs
        annotate     ann
        checkout     co get
        commit       ci com
        diff         di dif
        export       exp ex
        history      hi his
        import       im imp
        log          lo
        login        logon lgn
        rannotate    rann ra
        rdiff        patch pa
        release      re rel
        remove       rm delete
        rlog         rl
        rtag         rt rfreeze
        status       st stat
        tag          ta freeze
        update       up upd
        version      ve ver
(Specify the --help option for a list of other help options)

Reverting to a previous file version

$ cvs update -j 1.5 -j 1.4 search.pl 
$ mv search.pl search.pl.new 
$ cvs update -A search.pl 
$ mv search.pl.new search.pl 
$ cvs commit -m "+ Reverting to previous version" search.pl
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox