例如:我的工程文件在F:ERP下,我把ERP下的erp.jpx文件、defaultroot文件夹和src文件夹上传至服务器/usr/local/erp下,然后登陆Linux服务器,登陆的用户是CVS的用户,其环境变量要正确(我的用户名为admin) #cd /usr/local/erp #cvs import -m "this is a ERP project" erp v_0_0_1 start
这样名为erp的CVS仓库就建立了。
之后开发小组的成员可以用winCVS把该项目下载到本地:
打开winCVS 点击工具栏Create -> Create a new repository... 弹出窗口 在Grenral中 Enter the CVSROOT填写admin@192.168.1.9:/home/cvsroot 其中admin是cvs的用户,在本例中admin也是linux的系统用户,192.168.1.9是服务器的地址,/home/cvsroot是CVS的主目录,参考上文。 Authentication中选择"passwd file on the cvs server" Use version中选择cvs 1.10 (Standard)
点击工具栏Create --> Checkout module...弹出对话框,其中的Checkout settings项中 Enter the module name and path on the server 填写erp,即我们建立的名为erp的CVS仓库 Local folder to checkout to 选择要下载到本地的目录,我选了F:myerp