티스토리 뷰
1. 환경
- Repository: Ubuntu 11.04
- Clone: Windows7 64bit + Eclipse Indigo
2. Ubuntu에서 설정
a. 여기에서는
- Repository를 여기에다 생성한다.
- 프로젝트 더미를 만든다.
b. 설치 진행
1) 1단계 디렉토리 및 기본 구성 진행
- 'apt-get install git-core' 를 설치한다.
- 'adduser git'를 추가한다. ( /home/git )
- 'mkdir /home/git/repositories' 저장소를 생성한다. ( /home/git/repositories )
2) 2단계 프로젝트 생성 및 저장소로 이동 진행
- 프로젝트명은 'ShareImage'라고 임의로 정했다.
- 'cd /home/git'로 이동한다.
- 'mkdir /home/git/ShareImage' 디렉토리를 생성한다.
- 'cd /home/git/ShareImage'로 이동한다.
- 이제 프로젝트를 더미 생성을 아래와 같이 진행한다.
$ touch README
$ git init
$ git add .
$ git status
$ git commit -a -m 'Share Image'
- 클론을 생성하기 위하여 아래와 같이 진행한다.
$ git clone --bare ShareImage ShareImage.git
$ touch ShareImage.git/git-daemon-export-ok
- 저장소로 이동하기 위하여 아래와 같이 진행한다.
$ mv /home/git/ShareImage.git /home/git/repositories
$ cd /home/git/repositories/ShareImage.git
$ git --bare update-server-info
$ mv hooks/post-update.sample hooks/post-update
3) 3단계 외부에서 접속하기 위한 진행
- 데몬을 띄워 WIndows의 Eclipse에서 접속을 할 수 있게 한다.
$ git daemon --export-all --syslog --base-path=/home/git/repositories
--reuseaddr --detach
3. Windows 이클립스에서 설정
a. git Repositories 설정
- Eclipse git플러그인을 설치한다.
- git 저장소에 접속한다.
- Eclipse 화면
원본 위치 <http://umaking.tistory.com/83>
- 안내
- 궁금한 점을 댓글로 남겨주시면 답변해 드립니다.