|
kdsoo@chromatix:/home/share/GIT/OMAP3430/linux-2.6.29-rc3-omap$ git status # On branch master # Changed but not updated: # (use "git add <file>..." to update what will be committed) # # modified: arch/arm/mach-omap2/board-xxx.c # modified: arch/arm/mach-omap2/mux.c # modified: arch/arm/plat-omap/include/mach/mux.h # modified: drivers/media/video/xxxx.h # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # 090202 # work.patch # work.patch2 no changes added to commit (use "git add" and/or "git commit -a") |
modified 파일이 있으면 pull 이 안될수 있습니다.
| kdsoo@chromatix:/home/share/GIT/OMAP3430/linux-2.6.29-rc3-omap$ git diff > work.patch |
패치가 work.patch 파일로 저장됩니다.
가장 마지막으로 pull 해왔던 상태로 리셋합니다.
| kdsoo@chromatix:/home/share/GIT/OMAP3430/linux-2.6.29-rc3-omap$ git reset --hard |
이때 주의할것은 git status 에서 untracked file 이 있으면 리셋할때 파일이 지워집니다.
untracked file 이 없도록 commit 해놓고 reset 하세요.
| kdsoo@chromatix:/home/share/GIT/OMAP3430/linux-2.6.29-rc3-omap$ git pull |
하시면 깨끗하게 최신으로 패치 됩니다.
|
| omap3430 camera subsystem FPS check feature design (0) | 2009/02/25 |
|---|---|
| Vim with git plugin (git-vim) (0) | 2009/02/24 |
| git pull & patch 간략 정리 (0) | 2009/02/18 |
| Hello San Francisco. (0) | 2009/02/13 |
| vi 와 Linux programmer’s manual 연동 (0) | 2009/02/12 |
| cscope with linux kernel source code (0) | 2009/02/10 |
Tag : git, git pull, kernel, Linux, Patch
Send me an instant message!