티스토리 뷰
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
- 법무부
- 바이크
- oracle
- Eclipse
- 헌혈
- 프로젝트
- 금연
- 액땜
- 낭패
- 김용
- ubuntu
- 안드로이드 앱
- EditPlus
- 무료 프로그램
- 출근길
- iBATIS
- 일하는 곳
- 출근
- 윈도우
- 충동구매
- 정부과천청사
- connect by
- 오라클
- GB-P100
- 최대 메모리
- 짜증
- VMware
- Java
- Git
- 파워콤해지
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |