CVS Commands
hansel<hansel@163.com>
2005.4.17
1.Add CVSROOT Definition
Avoid using -d parameter for each time using cvs. May be add to .bash_profile in your home directory or add to /etc/bashrc for everybody to using.
Note: Do not leave blank at both side of equal mark, USERNAME is for cvs server, SERVER_IP is ip address of cvs server.
CVSROOT=:pserver:USERNAME@SERVER_IP:/cvsroot
export CVSROOT
2.login:login to cvs server. Only need login one time, cvs will keep your login information.
cvs login
3.checkout: check out a module on cvs server
Enter your working folder before using this command, may be your home directory. MODULE is module name on cvs server.
cvs co MODULE
4.update:update files in working folder
Should run this command before each time commit a module.
cvs up
using -d option to auto create new fold in working folder.
cvs up -d
5.commit:commit local files in working folder to cvs server.
cvs ci
6.add:Add a new file or directory. For folder with sub-folder, using import command instead.
cvs add FILE or DIRECTORY
cvs import DIRECTORY
7.remove: Remove a file or directory on cvs server
cvs remove FILE or DIRECTORY
hansel<hansel@163.com>
2005.4.17
1.Add CVSROOT Definition
Avoid using -d parameter for each time using cvs. May be add to .bash_profile in your home directory or add to /etc/bashrc for everybody to using.
Note: Do not leave blank at both side of equal mark, USERNAME is for cvs server, SERVER_IP is ip address of cvs server.
CVSROOT=:pserver:USERNAME@SERVER_IP:/cvsroot
export CVSROOT
2.login:login to cvs server. Only need login one time, cvs will keep your login information.
cvs login
3.checkout: check out a module on cvs server
Enter your working folder before using this command, may be your home directory. MODULE is module name on cvs server.
cvs co MODULE
4.update:update files in working folder
Should run this command before each time commit a module.
cvs up
using -d option to auto create new fold in working folder.
cvs up -d
5.commit:commit local files in working folder to cvs server.
cvs ci
6.add:Add a new file or directory. For folder with sub-folder, using import command instead.
cvs add FILE or DIRECTORY
cvs import DIRECTORY
7.remove: Remove a file or directory on cvs server
cvs remove FILE or DIRECTORY

270

被折叠的 条评论
为什么被折叠?



