原文地址
Note: http://book.csdn.net/bookfiles/220/10022010453.shtml有非常好的使用介紹,詳細全面。
安裝好CVSNT后,需要用命令行設置用戶,密碼,否則會出現類似I/O錯誤的問題:
假設裝在了 : C:/Program Files/CVS 中,在命令行中[cmd]中,進入這個文件夾,運行命令:
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 選中前三項就好,不選的話,兼容性差點,當然不會影響自己使用。
cvs -d C:\cvsfile passwd -r administrator -a giles , 這樣giles用戶有了管理員權限。。
最好把cvs的儲存庫放在C盤,不然會發生各樣的詭異錯誤。
2. CVS Control Panel 里的 Server Settings 也需要設置, 不然有可能出現 no such domain的提示。
3. 支持字符集的問題: 在建好服務器后,右鍵點擊,在屬性里面可以修改字符集。
4. 如果本地能連上CVS,但是局域網內另外的用戶連接不上,那很可能是windows 防火墻的問題 。
我們需要在防火墻的例外里面添加 CVs.exe 和 默認的 2401端口 。。
好的使用習慣:
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 的時候,會把server中的代碼和本地的代碼進行merge ,而不是簡單的覆蓋本地代碼。
如果commit之前不進行update,則由于CVS不允許在commit的時候自動進行merge,極有可能產生沖突。
一般使用update和commit就可以了。