모든지 하나를 쓸려면 알아야 하는게 많치만 자주 쓰는 명령어들만 익혀도 별 무리는 없는듯


* cvs help 사용

 - cvs command -- help

ex) cvs update[ui] -- help

Usage: cvs update [-APCdflRp] [-k kopt] [-r rev] [-D date] [-j rev]
    [-I ign] [-W spec] [files...]
        -A      Reset any sticky tags/date/kopts.
        -P      Prune empty directories.
        -C      Overwrite locally modified files with clean repository copies.
        -d      Build directories, like checkout does.
        -f      Force a head revision match if tag/date not found.
        -l      Local directory only, no recursion.
        -R      Process directories recursively.

...............

command 에 따른 옵션들을 쉽게 알아 찾아볼수가 있다.


* cvs 로그인 정보는 .profile 에 기록

 - 리눅스에서 같은 계정을 등록하여 사용할 경우 .bash_profile 을 자신만의 profile 로 카피하여 사용한다.

ex) cp .bash_profile .jhcho_profile

.jhcho_profile 내용

alias javacc='/export/www/jhcho/.javacc'

export CVSROOT=:pserver:jhcho@214.216.176.195/home/webmaste/webhard/source-forge

.........

........


* cvs history

cvs log 명령을 통해 저장된 소스 파일의 history 를 볼수 있다.

[webmaste@test controller]$ cvs log BaseAction.java

----------------------------

revision 1.2

date: 2004/11/08 04:41:49;  author: jhcho;  state: Exp;  lines: +1 -13

가상메소드변경

----------------------------

revision 1.1

date: 2004/11/04 01:44:35;  author: jdjang;  state: Exp;

기본 엑션 크랠스


* 잘못 checkin 하여 이전 버전의 소스를 가져오고 싶을 경우

cvs update 명령을 통해 버전에 맞는 파일을 가져 올수 있다.

> cvs update -f 1.2 BaseAction.java


* binary 파일을 저장소에 올릴때

> cvs add -kb *.gif

 

* update 를 통한 repository 디렉토리 생성

: 작업 디렉토리를 기준으로 저장소에 만들어져 있는 디렉토리가 생성이 되므로 원치않는 디렉토리가 생길수도 있다.

> cvs update -d



참고 사이트

-  cvs quick reference guide

cvs FAQ

cvs 사용

[출처] 몇가지 cvs 명령어|작성자 블즈