Adding an existing project to CVSIf you already have a project in ~/my_project, with for example a "Makefile" and several ".c" and ".h" files, you may add this to your CVS repository using the following steps. [See "Setting Up CVS" for details on installing and configuring CVS on your computer.]Change directory into your project cd ~/my_project Clean out any temporary files you don't want in CVS e.g. rm *.o *~ Import this directory as a "Vendor Branch", providing an intial update comment cvs import -m "Initial Version" my_project vtag rtag Go back up a directory so that the checkout will use the existing directory cd .. Make an initial checkout of the project (this will not affect your files) cvs checkout my_project Change directory into your project cd my_project Check the status of your files (should all be "up to date") cvs status cvs status | grep 'File' You may now edit your code, and when you are happy that you want to save a version cvs commit cvs tag VERSION_1_0 There it is, you are now version controlled! < Back to index |