사용자 도구

사이트 도구


git

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
마지막 판 양쪽 다음 판
git [2021/04/27 13:11]
kwon37xi
git [2022/05/20 10:26]
kwon37xi [Git hook]
줄 161: 줄 161:
 </code> </code>
  
-===== Git hook ===== 
-  * 기본적으로는 ''projectdir/.git/hooks''에 후킹 파일을 둔다. 
-  * 2.9 부터는 ''projectdir/.githooks'' 에 후킹 스크립트를 넣는다. 
-  * 전역 Hook 파일 설정 (git 2.9+)<code sh> 
-git config --global core.hooksPath /path/to/my/centralized/hooks 
-</code> 
-  * [[https://git-scm.com/book/ko/v2/Git%EB%A7%9E%EC%B6%A4-Git-Hooks|Git Hooks]] 
  
 ===== Commit Template ===== ===== Commit Template =====
줄 296: 줄 289:
  
  
 +===== git blame ignore =====
 +  * [[https://www.moxio.com/blog/43/ignoring-bulk-change-commits-with-git-blame|Ignoring bulk change commits with git blame - Moxio]]
 +  * bulk 갱신, 포맷팅 변경 같은 경우 blame 에 자꾸 나오면 오히려 불편함. 특정 commit 을 blame에서 제외하기
 +  * [[https://akrabat.com/ignoring-revisions-with-git-blame/|Ignoring mass reformatting commits with git blame – Rob Allen's DevNotes]]
 ===== 문제 해결 ===== ===== 문제 해결 =====
   * [[http://ohshitgit.com/|Oh, shit, git!]]   * [[http://ohshitgit.com/|Oh, shit, git!]]
줄 326: 줄 323:
   * [[https://github.com/mingrammer/git-tips|Git Tips]]   * [[https://github.com/mingrammer/git-tips|Git Tips]]
   * [[https://github.com/ingydotnet/git-subrepo|ingydotnet/git-subrepo]]   * [[https://github.com/ingydotnet/git-subrepo|ingydotnet/git-subrepo]]
 +  * [[https://subicura.com/git/|Git / GitHub 안내서]]
git.txt · 마지막으로 수정됨: 2023/10/14 13:47 저자 kwon37xi