1.설치 기본값으로
2. 디렉토리설정
3.temp 설정
4. 포트추가
5.패스 설정
6. 계정테스트

set cvsroot=:sspi:<computername>:/TEST
(ex--> set cvsroot=:sppi:127.0.0.1:/work)
서버 경로 완료
안돼면 (set CVSROOT=:pserver:IP:/cvsroot <- 위쪽 name 과 같게)

cvs passwd -a <account name>
(ex--> cvs passwd -a administrator ) account name 는 지금 윈도우 접속 아이디(계정)를 말한다.

서버  패스워드 입력하여 로그인

7. 계정 추가
cvs passwd -r <real accountname> -a <cvs login name>

계정에 공백이 포함되어 있다면 쌍따옴표로 감싸도록 한다.

cvs passwd -r "system admin" -a "new user"




(ex --> cvs passwd -r administrator -a layers )
<real accountname 윈도우 계정>
<cvs login name 만들 cvs 아이디>


8. 테스트
set cvsroot=:pserver:<user>@<computername>:/TEST
(ex --> set cvsroot=:pserver:layers@127.0.0.1:/work )
<user (cvs login name)만든아이디>
<computername 서버 아이피주소>
/test 만든 디렉토리이름

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

















 

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


* 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 명령어|작성자 블즈