kido>cvs -v
useradd cvs
chmod 755 /home/cvs
- /etc/xinetd.d/cvspserver 설정하기
service cvspserver
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/bin/cvs
server_args = -f --allow-root=/home/cvs pserver
log_on_failure += USERID
}
/etc/rc.d/init.d/xinetd restart
export CVSROOT=/home/cvs
cvs init
- 이미 사용자가 존재하는 경우
usermod -g cvs userid
- 새로운 사용자 생성하는 경우
useradd username -g cvs
export CVSROOT=:pserver:userid@서버주소:/home/cvs
echo $CVSROOT
cvs login
Logging in to :pserver:userid@서버주소:/home/cvs
CVS password:
kido>cvs -d /CVS/repo import -m "메시지" sesame [sesame] [initial]
첫번째 sesame는 /CVS/repo 저장소 안에 저장될 이름을 나타낸다. 이름 결정을 잘 하는것이 좋다.
두번째 sesame과 initial은 꼬리표이다. 그냥 달아두도록 하자.
kido>cvs -d /CVS/repo co sesame
co : CheckOut의 의미
sesame : 가져올 저장소의 자료이름
cvs status Color.txt
===================================================================
File: Color.txt Status: Locally Modified
Working revision: 1.1.1.1 Wed Nov 14 07:39:29 2007
Repository revision: 1.1.1.1 /CVS/repo/sesame/Color.txt,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: (none)
cvs diff Color.txt
Index: Color.txt
===================================================================
RCS file: /CVS/repo/sesame/Color.txt,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 Color.txt
6a7,10
> blue
> purple
> gray
> white
cvs diff --side-by-side Color.txt
Index: Color.txt
===================================================================
RCS file: /CVS/repo/sesame/Color.txt,v
retrieving revision 1.1.1.1
diff --side-by-side -r1.1.1.1 Color.txt
black black
brown brown
red red
orange orange
yellow yellow
green green
> blue
> purple
> gray
> white
cvs commit -m "새로운 색상 추가"
cvs log Color.txt
RCS file: /CVS/repo/sesame/Color.txt,v
Working file: Color.txt
head: 1.2
branch:
locks: strict
access list:
symbolic names:
initial: 1.1.1.1
sesame: 1.1.1
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
----------------------------
revision 1.2
date: 2007/11/14 08:29:00; author: eunkong; state: Exp; lines: +4 -0
새로운 색상 추가
----------------------------
revision 1.1
date: 2007/11/14 07:39:29; author: eunkong; state: Exp;
branches: 1.1.1;
Initial revision
----------------------------
revision 1.1.1.1
date: 2007/11/14 07:39:29; author: eunkong; state: Exp; lines: +0 -0
=============================================================================