본문 바로가기

git

Git 유용한 명령어들 commit 한 내용을 roll back 하기 local repository 에 마지막 commit 을 날릴 수 있다. git reset --hard HEAD^ git reset HEAD^^^ "^" 의 갯수만큼 back 으로 돌아가나.. 파일자체는 원본으로 남아있어서 해당 파일이 modified 상태가 된다. 위 상태에서 아래와 같이 --head 옵션을 주면, 서버의 상태로 파일이 원복된다. git reset --hard HEAD 위 두 명령어를 합치면 아래와 같다. git reset --hard HEAD^^^ git status 에서 modified file 이 붉은 색으로 표시된다면 아직, add 가 안되어 workspace 에서 stage 로 가지 못한 것이다. 아래 문구도 유심히 보면 된다. n.. 더보기
git 간편 안내서 git 을 굉장히 간결하고 친숙하게 소개해 주고 있다. http://rogerdudler.github.io/git-guide/index.ko.html 아래는 한글 ppt 형식으로 svn 과의 차이점을 설명해 줍니다. http://www.slideshare.net/einsub/svn-git-17386752 더보기
git 커맨드 시트 오오 이런 좋은 자료가 !!일단 주소부터 keep. http://www.insightbook.co.kr/wp-content/uploads/2013/04/git-치트시트프린트.png http://www.insightbook.co.kr/wp-content/uploads/2013/04/git-%EC%B9%98%ED%8A%B8%EC%8B%9C%ED%8A%B8%ED%94%84%EB%A6%B0%ED%8A%B8.png 더보기
git 에서 수정사항에 대한 patch file 만들기 git 에서 아래와 같은 수정사항이 있을때 system.h universal.h 의 수정사항만을 patch 파일로 만든다고 한다면, linux-2.6.32]$ git status # On branch master # Changed but not updated: # (use "git add ..." to update what will be committed) # (use "git checkout -- ..." to discard changes in working directory) # # modified: C110_Attach.cmm # modified: arch/arm/kernel/traps.c # modified: arch/arm/mach-s5pv210/include/mach/system.h # mod.. 더보기
git - Linux & windows 환경에서 사용하기 http://dev.azki.org/40 1.1 git 환경 설정 a. git config --global user.name "my name" : user name 설정 b. git config --global user.email "my email" : user email 설정 c. vim ~/.bashrc git config --global core.gitproxy '/root/env/git_proxy.sh' : git 외부 proxy 설정 (git_proxy.sh는 첨부의 파일 참조) 1.2 code 수정 후 반영 sequence a. git pull : 코드 최신으로 sync받기 b. git status : 코드 수정 후 수정 사항 확.. 더보기