티스토리 뷰
Git 설치 참조 - http://www.jami.name/400
이미 사용중인 SVN 을 Git 으로 바꿔보자.
주의 : console 과 GUI 툴을 병행해서 사용했기 때문에 오류 발생할 수 있음. <.git> 디렉토리의 <config> 파일을 잘 살펴보자.
1. clone.
SVN repository 를 Git 으로 clone.
$git svn clone file:///tmp/<SVN-REPO-DIR> -T trunk -b branches -t tags <Git clone DIR>
git svn clone file:///cygdrive/e/00.svn_repo/jami ~/Z/00.jami
또는
git svn clone svn://localhost/jami ~/Z/00.jami
-T trunk -b branches -t tags : -s 옵션으로 대체 가능하다.
하지만 난 trunk/branches/tags 를 별도로 관리하지 않는 SVN repository 이기 때문에 해당 옵션은 생략.
2. ignore 파일 설정 및 사용자 설정.
SVN에 세팅되어 있는 ignore 파일들 정리
사용자 설정
cd ~/Z/00.jami/
git svn show-ignore > .gitignore
git config user.name "John Doe"
git config user.email "johndoe@example.com"
git config : --global 으로 이미 추가 했다면 패스..
3. Git repository 생성 및 초기화.
mkdir /tmp/test_git
cd /tmp/test_git
git init --bare
4. Git repository 에 push
cd ~/Z/00.jami
git remote add origin /tmp/test_git
git add *
git commit "init"
git push origin --all
'Dev > Git/SVN' 카테고리의 다른 글
Git - Setup (0) | 2013.02.22 |
---|
- Total
- Today
- Yesterday
- 일하는 곳
- connect by
- 프로젝트
- Git
- 액땜
- GB-P100
- 무료 프로그램
- 출근길
- 헌혈
- VMware
- 오라클
- 김용
- EditPlus
- ubuntu
- 윈도우
- 바이크
- iBATIS
- Eclipse
- 파워콤해지
- 낭패
- oracle
- 출근
- 법무부
- Java
- 최대 메모리
- 정부과천청사
- 충동구매
- 짜증
- 안드로이드 앱
- 금연
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |