~cpp SET CVSROOT=:pserver:아이디@165.194.17.15:/home/CVS SET PATH=%PATH%;"C:\Program Files\GNU\WinCvs 1.3"
~cpp SET CVSROOT=:pserver:자신의아이디@서버주소:서버의CVS홈주소
~cpp .\>cvs_set_remote.bat .\>cvs login Logging in to :pserver:neocoin2@165.194.17.15:2401/home/CVS CVS password: ********
~cpp .\> mkdir HelloWorld .\> cd HelloWorld .\HelloWorld> cvs import -m "Hello World를 출력 하는 프로젝트" HelloWorld zeropage HelloWorld
~cpp cvs import -m "코멘트" 프로젝트이름 VenderTag ReleaseTag
~cpp .\HelloWorld>cd.. .\>cvs checkout HelloWorld cvs server: Updating HelloWorld .\> cd HelloWorld
~cpp cvs checkout 프로젝트이름(모듈이름)
~cpp .\HelloWorld> notepad HelloWorld.cpp
~cpp #include <stdio.h> int main(int argc, char* argv[]){ printf("Hello World\n"); return 0; }
~cpp .\HelloWorld>cvs add HelloWorld.cpp cvs server: scheduling file `HelloWorld.cpp' for addition cvs server: use 'cvs commit' to add this file permanently .\HelloWorld>cvs commit -m "Hello World를 출력한다." cvs commit: Examining . RCS file: /home/CVS/HelloWorld/HelloWorld.cpp,v done Checking in HelloWorld.cpp; /home/CVS/HelloWorld/HelloWorld.cpp,v <-- HelloWorld.cpp initial revision: 1.1 done
~cpp cvs add 자원이름 cvs commit -m "코멘트"
~cpp C:\User>cvs_set_remote.bat . . . C:\User>cvs login Logging in to :pserver:neocoin2@165.194.17.15:2401/home/CVS CVS password: ******** C:\User>cvs checkout HelloWorld cvs server: Updating HelloWorld U HelloWorld/HelloWorld.cpp C:\User>cd HelloWorld C:\User\HelloWorld>notepad HelloWorld.cpp
~cpp cvs checkout 모듈이름(프로젝트이름)
~cpp #include <iostream> using namespace std; int main(int argc, char* argv[]){ cout << "Hello World!" << endl; return 0; }
~cpp C:\User\HelloWorld>cvs commit -m "iostream을 쓴것" cvs commit: Examining . Checking in HelloWorld.cpp; /home/CVS/HelloWorld/HelloWorld.cpp,v <-- HelloWorld.cpp new revision: 1.2; previous revision: 1.1 done도움말 : commit 서버에 변경된 자원을 반영한다.
~cpp cvs commit -m "코멘트"
~cpp C:\User\HelloWorld>cvs log HelloWorld.cpp RCS file: /home/CVS/HelloWorld/HelloWorld.cpp,v Working file: HelloWorld.cpp head: 1.2 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 2; selected revisions: 2 description: ---------------------------- revision 1.2 date: 2002/07/30 16:45:16; author: neocoin2; state: Exp; lines: +2 -0 iostream을 쓴것 ---------------------------- revision 1.1 date: 2002/07/30 16:26:13; author: neocoin2; state: Exp; Hello World를 출력한다. =============================================================================
~cpp .\HelloWorld>cvs diff -r "1.1" -r "1.2" HelloWorld.cpp Index: HelloWorld.cpp =================================================================== RCS file: /home/CVS/HelloWorld/HelloWorld.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -r1.1 -r1.2 1,2c1,3 < #include <stdio.h> < --- > #include <iostream> > using namespace std; > 4c5 < printf("Hello World\n"); --- > cout << "Hello World!" << endl;도움말 : diff 두 버전간의 차이를 비교 한다. 파일이름을 생략하면 해당 프로젝트의 모든 소스들의 버전들을 체크해서 ㅗ인다.
~cpp cvs diff -r "버전" -r "버전" (파일이름)