Your Trail Index >
Computer >
Programming > CVS
Keywords ssh tunneling, version control
Copyright Information This article is licensed under
GNU Public License .
Some of the images in this article may have different copyright licenses.
Please follow the URLs of the images for detailed information about their
specific copyright licenses.
Contact
webmasters for more information
on copyright issues.
1 CVS in Programming
[CH]
[GT]
CVS, or Concurrent Version System, is an open source version control system.
1.1 CVS via SSH
setup ssh tunneling
setup the environment variable CVS_RSH, for example, in bash, use
export "CVS_RSH=ssh"
If it doesnot not, try to replace ssh with the full path of your ssh client
setup the CVSROOT environment variable
export CVSROOT=:ext:username@host.name.com:/path/to/repository
use the cvs command to perform cvs operations
1.2 CVS Versions
1.2.1 How to find out version information about a file
Use "cvs log" to view version information, for example, the following command shows the history of Foo.java:
cvs log Foo.java
Note that you might have to change to the directory of Foo.java before issuing this cvs command.
1.2.2 How to find out the differences between versions
Use cvs diff to compare two versions, for example, the following cvs command to compare the diffences between
revision 1.3 and 1.4 of Foo.java
cvs diff -c -r 1.4 -r 1.3 Foo.java cvs update -r 1.3 Foo.java
References [CH] https://www.cvshome.org/ [GT] http://www.geektimes.com/