|
CVS - Current Version System August 21, 2006
BillMac:~ billhung$ sudo sh Password: sh-2.05b# mkdir /usr/local/cvsrep sh-2.05b# ls -ld /usr/local/cvsrep/ drwxr-xr-x 2 root wheel 68 Aug 11 23:31 /usr/local/cvsrep/ sh-2.05b# groups billhung billhung appserveradm appserverusr admin BillMac:~ billhung$ groups billhung billhung wheel appserveradm appserverusr admin sh-2.05b# chmod g+w /usr/local/cvsrep/ sh-2.05b# exit exit BillMac:~ billhung$ export CVSROOT=/usr/local/cvsrep/ BillMac:~ billhung$ export CVSEDITOR=pico BillMac:~ billhung$ cvs init BillMac:~ billhung$ cd /Applications/MAMP/htdocs/ BillMac:/Applications/MAMP/htdocs billhung$ emacs cvs.html BillMac:/Applications/MAMP/htdocs billhung$ <HTML> CVS TEST </HTML> BillMac:/Applications/MAMP/htdocs/uploader billhung$ cvs import -m "PHP Uploader" uploader vendor-tag start N uploader/fileupload.htm N uploader/uploader.php cvs import: Importing /usr/local/cvsrep/uploader/uploads N uploader/uploads/.DS_Store No conflicts created by this import BillMac:/Applications/MAMP/htdocs/uploader billhung$ BillMac:~/Sites/php billhung$ cvs checkout uploader cvs checkout: Updating uploader U uploader/fileupload.htm U uploader/uploader.php cvs checkout: Updating uploader/uploads U uploader/uploads/.DS_Store BillMac:~/Sites/php billhung$ BillMac:~/Sites/php/uploader billhung$ cvs commit -m "added a line CVS TEST" uploader.php Checking in uploader.php; /usr/local/cvsrep/uploader/uploader.php,v <-- uploader.php new revision: 1.2; previous revision: 1.1 done BillMac:~/Sites/php/uploader billhung$ Add a User to a Group In order to have CVS to work, I have to add myself to the wheel group, which
owns the cvsrep directory. So I go to /Applications/Utilities->Netinfo Manager. Removing Sticky Tag floss$ cvs -q update -A U hello.c floss$ cvs status hello.c ============================== Reference
The Tutorial Shown above |