git
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| git [2009/08/31 03:51] – 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> | ||
| alias git-export=' | alias git-export=' | ||
| </ | </ | ||
| - | + | branch 목록 보기 | |
| - | ====== rsync ref ====== | + | <code bash> |
| - | .rsyncignore | + | $ git branch -a |
| + | * android-2.6.27 | ||
| + | origin/ | ||
| + | origin/ | ||
| + | origin/ | ||
| + | origin/ | ||
| + | origin/ | ||
| + | origin/ | ||
| + | </ | ||
| + | branch 간 diff | ||
| + | <code bash> | ||
| + | $ git diff origin/ | ||
| + | </ | ||
| + | 브랜치 관련 명령어들 | ||
| + | <code bash> | ||
| + | $ git branch -a <-- 브랜치 목록 나열 | ||
| + | $ git branch -d all <-- all 이라는 로컬 브랜치 삭제 | ||
| + | </ | ||
| + | 브랜치 목록 보기 | ||
| < | < | ||
| - | .rsyncignore | + | git branch -a |
| - | *.vws | + | |
| - | .git/ | + | |
| - | do_rsync.sh | + | |
| - | cscope.out | + | |
| - | cscope.files | + | |
| - | tags | + | |
| - | *.sco | + | |
| </ | </ | ||
| - | do_rsync.sh | + | 태그 목록 보기 |
| + | < | ||
| + | git tag -l | ||
| + | </ | ||
| + | 리모트 브랜치를 로컬 브랜치로 따라가기. | ||
| + | < | ||
| + | git checkout --track -b android-2.6.29 origin/ | ||
| + | </ | ||
| + | svn revert와 같이 현재 한 작업 모두 -최종 rebase로- 초기화 | ||
| + | < | ||
| + | git reset --hard HEAD | ||
| + | </ | ||
| + | 충돌시 머지 | ||
| + | < | ||
| + | git mergetool | ||
| + | </ | ||
| + | |||
| + | 현재 저장소에 다른 브랜치를 추가! | ||
| <code bash> | <code bash> | ||
| - | #!/usr/ | + | $ git remote add suapapa git@github.com: |
| - | rsync -rvt --progress --delete --exclude-from=.rsyncignore \ | + | $ git pull suapapa |
| - | / | + | $ git branch |
| - | / | + | $ git branch |
| </ | </ | ||
| + | |||
| + | [[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.1251690717.txt.gz · Last modified: 2013/08/03 05:04 (external edit)