原文地址
Note: http://book.csdn.net/bookfiles/220/10022010453.shtml有非常好的使用介紹,詳細(xì)全面。
安裝好CVSNT后,需要用命令行設(shè)置用戶,密碼,否則會(huì)出現(xiàn)類似I/O錯(cuò)誤的問題:
假設(shè)裝在了 : C:/Program Files/CVS 中,在命令行中[cmd]中,進(jìn)入這個(gè)文件夾,運(yùn)行命令:
cvs -d C:\cvsfile passwd -a giles ,
next step ,input the password for user-giles ,restart the cvs serve ,you can use it now ...
Generally , you need to make user write the repository , so open the control panel---->Advanced -> unselect the All users are read item ...
Then , It is ok for you to enjoy it .. -----------------
---------------
compatibility options
CvsNT clients 選中前三項(xiàng)就好,不選的話,兼容性差點(diǎn),當(dāng)然不會(huì)影響自己使用。
cvs -d C:\cvsfile passwd -r administrator -a giles , 這樣giles用戶有了管理員權(quán)限。。
最好把cvs的儲(chǔ)存庫(kù)放在C盤,不然會(huì)發(fā)生各樣的詭異錯(cuò)誤。
2. CVS Control Panel 里的 Server Settings 也需要設(shè)置, 不然有可能出現(xiàn) no such domain的提示。
3. 支持字符集的問題: 在建好服務(wù)器后,右鍵點(diǎn)擊,在屬性里面可以修改字符集。
4. 如果本地能連上CVS,但是局域網(wǎng)內(nèi)另外的用戶連接不上,那很可能是windows 防火墻的問題 。
我們需要在防火墻的例外里面添加 CVs.exe 和 默認(rèn)的 2401端口 。。
好的使用習(xí)慣:
1. One day ,One Commit .
2. Update before modifying the code.
3. Update before committing the code, or else you may encounter some conflicts.
Update 的時(shí)候,會(huì)把server中的代碼和本地的代碼進(jìn)行merge ,而不是簡(jiǎn)單的覆蓋本地代碼。
如果commit之前不進(jìn)行update,則由于CVS不允許在commit的時(shí)候自動(dòng)進(jìn)行merge,極有可能產(chǎn)生沖突。
一般使用update和commit就可以了。