git
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| git [2009/10/28 03:55] – suapapa | git [2013/08/03 05:04] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 24: | Line 24: | ||
| $ git branch -d all <-- all 이라는 로컬 브랜치 삭제 | $ 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 ====== | ====== 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:// | *[[http:// | ||
| + | |||
| + | ====== references ====== | ||
| + | *[[http:// | ||
git.1256702133.txt.gz · Last modified: 2013/08/03 05:04 (external edit)