git
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
git [2009/10/23 08:11] – suapapa | git [2013/08/03 05:04] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== commandline reference ====== | + | ====== |
svn export 와 같은 동작 | svn export 와 같은 동작 | ||
<code bash> | <code bash> | ||
Line 19: | Line 19: | ||
$ git diff origin/ | $ git diff origin/ | ||
</ | </ | ||
+ | 브랜치 관련 명령어들 | ||
+ | <code bash> | ||
+ | $ git branch -a <-- 브랜치 목록 나열 | ||
+ | $ git branch -d all <-- all 이라는 로컬 브랜치 삭제 | ||
+ | </ | ||
+ | 브랜치 목록 보기 | ||
+ | < | ||
+ | git branch -a | ||
+ | </ | ||
+ | 태그 목록 보기 | ||
+ | < | ||
+ | git tag -l | ||
+ | </ | ||
+ | 리모트 브랜치를 로컬 브랜치로 따라가기. | ||
+ | < | ||
+ | git checkout --track -b android-2.6.29 origin/ | ||
+ | </ | ||
+ | svn revert와 같이 현재 한 작업 모두 -최종 rebase로- 초기화 | ||
+ | < | ||
+ | git reset --hard HEAD | ||
+ | </ | ||
+ | 충돌시 머지 | ||
+ | < | ||
+ | git mergetool | ||
+ | </ | ||
+ | |||
+ | 현재 저장소에 다른 브랜치를 추가! | ||
+ | <code bash> | ||
+ | $ git remote add suapapa git@github.com: | ||
+ | $ git pull suapapa | ||
+ | $ git branch -a | ||
+ | $ git branch --track suapapa suapapa/ | ||
+ | </ | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | 컬러 쉘 설정 | ||
+ | <code bash> | ||
+ | $ git config --global color.ui " | ||
+ | </ | ||
+ | |||
+ | ====== Conflict!! ====== | ||
+ | 머지 도구 설정 | ||
+ | <code bash> | ||
+ | $ git config merge.tool meld | ||
+ | </ | ||
+ | |||
+ | ===== github ===== | ||
+ | *[[http:// | ||
+ | |||
+ | ====== git-svn ====== | ||
+ | ===== 우분투에서의 설치 ===== | ||
+ | <code bash> | ||
+ | $ sudo apt-get install git-svn | ||
+ | </ | ||
+ | 다음과 같이 PATH 추가 필요 | ||
+ | <code bash> | ||
+ | PATH=$PATH:/ | ||
+ | </ | ||
+ | ===== working cycle ===== | ||
+ | |||
+ | <code bash> | ||
+ | $ git-svn clone [svn_repo_addr] [to_dir] | ||
+ | </ | ||
+ | <code bash> | ||
+ | $ git checkout -b [specific_work_branch] | ||
+ | </ | ||
+ | <code bash> | ||
+ | $ git add -u | ||
+ | $ git commit -m "your log here" | ||
+ | </ | ||
+ | <code bash> | ||
+ | $ git branch master | ||
+ | $ git-svn rebase | ||
+ | $ git rebase [specific_work_branch] | ||
+ | $ git-svn dcommit | ||
+ | </ | ||
+ | ===== reference ===== | ||
+ | *[[http:// | ||
+ | ====== references ====== | ||
+ | *[[http:// |
git.1256285483.txt.gz · Last modified: 2013/08/03 05:04 (external edit)