3.5. Commit changes

How does a developer make changes to a file on the server?

Well first the file has to be edited locally of course. This can be done with his or her favorite editor. Just open the file that is in the repository in cvsroot, edit it and save it. WinCVS doesn't have to be running while the file is being edited. When you've saved the file back into the repository and startup WinCVS you can see that the file has been changed:

The icon in front of the changed file now has a different color (red). But, the revision number and/or the file date in WinCVS haven't changed yet. That is because the changes still are only local. To get the changed file on the server we have to commit the changes.

You can read along with WinCVS by looking at the command-window:


	 cvs -q commit -m "changed the copyright information because of newyear" readme.txt (in directory D:\cvsroot\Version_4\)
	 Checking in readme.txt;
	 /cvsroot/sf2k/Version_4/readme.txt,v  <--  readme.txt
	 new revision: 1.3.4.1; previous revision: 1.3
	 done

	 *****CVS exited normally with code 0*****