»  Home  »  Programming  »  Version Control 101 With CVS
 »  Home  »  Web Design  »  Version Control 101 With CVS
 »  Home  »  Web Technologies  »  Version Control 101 With CVS
Version Control 101 With CVS
By Rodney Amato | Published 06/20/2006 | Programming , Web Design , Web Technologies | Rating: ratingfullratingfullratingfullratingfullratingfull Unrated |
Adding Files To Our Module

Now that we have initialised our repository and created a module, we need to add the files to the module. This is really easy to do. Just right click on the folder you added to CVS add choose “CVS Add Contents” from the menu.



This will bring up a window which lets you choose which files you what you want to add to your module:

 

Now there is one step here that may confuse some people because it may seem a little strange until you get used to it. Adding a file does not automatically add it to CVS. If you browse to the file in explorer now, you will see the orange plus icon on it.

When a file is totally up to date in our repository though, it shows a green tick icon. So, to put the files into CVS we have to save the changes to the repository, otherwise known as commiting the changes. A change could be adding a file, removing a file or just modifying the file and they all have to be committed to have the change saved to the repository.

One point of interest though is that directories are automatically added to the CVS repository when you add them.

To commit the changes, right click in the folder and choose CVS Commit from the menu:



This will bring up a screen which lets you type in a message describing the commit. It may seem easier to not type a message here, but if you are coming back in a years time and trying to work out why you made a change then having a clear and concise commit message can save you having to spend a lot of time trying to work out what you were trying to do with a particular change or where you fixed a specific problem.



Even if your comment seems self explanitory now, it's good to get into the habbit of always adding a comment when you commit. Once you are happy with your comment, click OK and you will get the familiar messages box that should tell you that the operation was completed successfully.




Pages: « Back  1 2 3 4 5 6  Next » 
Web designers: Learn how to attract more clients and profit like the big guys. Subscribe to our newsletter.