Apollo Connecting the World

Diligence and Intelligence

Posts Tagged ‘project

Checkout CVS folder from server

leave a comment »

If you are engaged in a large project, and feel difficult to maintain the different versions of the large number of files, you can use CVS to manage the project.

This article is to show how to checkout a folder from a CVS server, under Linux.

1. Set the environment. In ~/.bashrc, append the following code:
CVSROOT=:ext:yourname@CVS_SERVER:CVSROOT_FOLDER_IN_THE_SERVER
export CVSROOT

e.g.
CVSROOT=:ext:aaa@192.168.1.1:/var/cvsroot  #192.168.1.1 is the CVS server which have the cvs folder
export CVSROOT

2. suppose you want to checkout the folder “myProject” on the CVS server (/var/cvsroot/myProject) into your machine, and store the folder under ~/FROMCVS (that is, store as ~/FROMCVS/myProject)
open a terminal, cd to ~/FROMCVS, type the command:
cvs checkout myProject
(NOTE: you should have an account on the CVS server first)

OK. Take a look at the folder, you will see what you want to download from the server.

Reference:
[1] CVS使用简介 http://doc.linuxpk.com/3701.html

Written by apollozhao

2010/03/03 at 13:02