# http://www.gentoo.org/doc/en/cvs-tutorial.xml # login $ export CVSROOT=:ext:sdibb@foo.bar.com:/usr/local/cvsroot $ cvs init $ cvs co module_name # get latest updates from remote repository $ cvs update -dP # -d creates any new directories # -P removes empty directories # commit changes: $ cvs update # commit changes with message: $ cvs commit -m "I fixed a bug." # view changelog $ cvs log myfile.c # Create a .cvsrc cvs -q diff -u -b -B checkout -P update -d -P # Add a file to the repository $ cvs add myfile.c # need to commit for it to be added $ cvs add directory # no commit needed # Remove a file/directory $ rm myoldfile.c $ cvs remove myoldfile.c # requires commit $ cvs remove directory # no commit $ rmdir directory # Checkout anoncvs portage tree cvs -d:pserver:anonymous@anoncvs.gentoo.org:/var/cvsroot -q -z9 co gentoo-x86