본문 바로가기
운영_설치/리눅스_유닉스

svn + ssh 사용 예...

by 써드아이 2009. 10. 17.


* import  (WP0901KS07)

namacin@neptune ~/Working $ svn import mmi svn+ssh://localhost/home/namacin/Repository/IT7200_MMI/trunk
namacin@neptune ~/Working $ rm -rf mmi

* checkout
namacin@neptune ~/Working $ svn co svn+ssh://localhost/home/namacin/Repository/IT7200_MMI/trunk mmi
namacin@neptune ~/Working $ cd mmi

* library addup
namacin@neptune ~/Working/mmi $ find sylibs -type f -name '*\.[a]' | xargs svn add

* modify source & commit ...

 

* creating branches on repository for jch315 version
namacin@neptune ~/Working/mmi $ svn copy svn+ssh://localhost/home/namacin/Repository/IT7200_MMI/trunk svn+ssh://localhost/home/namacin/Repository/IT7200_MMI/branches/jch315_0B

* 작업중인 소스를 branches 로 전환
namacin@neptune ~/Working/mmi $ svn switch svn+ssh://localhost/home/namacin/Repository/IT7200_MMI/branches/jch315_0B

* 기능 (Source) 추가
namacin@neptune ~/Working/mmi $ svn add sms/MsgOption.h 
namacin@neptune ~/Working/mmi $ svn add sms/MsgOption.c
namacin@neptune ~/Working/mmi $ svn add sms/MsgSendConfig.c
namacin@neptune ~/Working/mmi $ svn commit

* 작업중인 소스를 main (trunk)로 전환
namacin@neptune ~/Working/mmi $ svn switch svn+ssh://localhost/home/namacin/Repository/IT7200_MMI/trunk

 


* SMS 관련 기능(source) 추가
namacin@neptune ~/Working/mmi $ svn add sms/SMSEvent.h
namacin@neptune ~/Working/mmi $ svn add sms/SMSEvent.c
namacin@neptune ~/Working/mmi $ svn commit

 

* creating branches on repository for namacin version
svn copy svn+ssh://localhost/home/namacin/Repository/IT7200_MMI/trunk svn+ssh://localhost/home/namacin/Repository/IT7200_MMI/branches/namacin_0B_TEST

* 작업중인 소스를 branches 로 전환
namacin@neptune ~/Working/mmi $ svn switch svn+ssh://localhost/home/namacin/Repository/IT7200_MMI/branches/namacin_0B_TEST

* 기능 (Source) 추가
namacin@neptune ~/Working/mmi $ svn mkdir Sample
namacin@neptune ~/Working/mmi $ svn add Sample/SampleScreen.c
namacin@neptune ~/Working/mmi $ svn add Sample/SampleScreen.h
namacin@neptune ~/Working/mmi $ svn mkdir log
namacin@neptune ~/Working/mmi $ svn add log/mmi_log.c
namacin@neptune ~/Working/mmi $ svn add log/mmi_log.h
namacin@neptune ~/Working/mmi $ svn add sms/MsgOption.c
namacin@neptune ~/Working/mmi $ svn add sms/MsgOption.h
namacin@neptune ~/Working/mmi $ svn commit

* 작업중인 소스를 main (trunk)로 전환
namacin@neptune ~/Working/mmi $ svn switch svn+ssh://localhost/home/namacin/Repository/IT7200_MMI/trunk