info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Personal CVS repository?


From: Geoff Beier
Subject: Re: Personal CVS repository?
Date: Thu, 6 May 2004 11:04:33 -0400

Hi Jill,

It occurs to me, though, that maybe I could set up a "personal"
CVS repository off my home directory (although I'll readily admit
that I've never set up a CVS repository of *any* kind before); I
would use it for my "fine-grain" version control, while submitting
new, boss-approved stuff to the "real" off-site repository only
once a week...

This is very easy to do... it's one of the easiest ways to use CVS and is an excellent application of the tool. Here's a quick synopsis. For a detailed, friendly explanation, look here: http://cvsbook.red-bean.com/cvsbook.html

(This assumes you're using a command line client in a UNIX-like environment.)

If you want the repository to go in your home directory, start there. Assume your project is in a subdirectory called myproject:
1. mkdir mypersonalrepository
2. cvs -d $HOME/mypersonalrepository init
3. cd myproject
4. cvs -d $HOME/mypersonalrepository import -m "initial import of myproject from myvendor" myproject myvendor initial
5. cd ..
6. mv myproject myproject.original
7. cvs -d $HOME/mypersonalrepository co myproject

Check the contents of myproj and make sure all is well, then you can work with files inside just like it's any other repository. You can even access it remotely with no further configuration if you have ssh access to the machine with your repository... just set CVS_RSH=ssh and issue the command
cvs -d:ext:address@hidden:/path/to/mypersonalrepository co myproject

Look at the cvs book on red-bean.com and the manual on cvshome.org for a more verbose explanation of what's happening here and of some tagging operations that will help you manage your contributions.

HTH,

Geoff





reply via email to

[Prev in Thread] Current Thread [Next in Thread]