https://github.com/currenjin/git-hooks
https://github.com/currenjin/git-hooks
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/currenjin/git-hooks
- Owner: currenjin
- Created: 2024-02-01T03:18:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-01T09:08:54.000Z (over 1 year ago)
- Last Synced: 2025-03-16T12:44:07.448Z (7 months ago)
- Language: Kotlin
- Size: 60.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Git-Hooks
Git Hooks 활용 예제를 모아놓는 레포지토리입니다.## ktlint-spring
`kotlin + spring`에서 `ktlint`를 사용해 `pre-push`를 테스트한 작업입니다.### Pre-push
`git push` 직전 `git hook`에 의해 동작하는 스크립트를 정의한 파일입니다.**어떻게 동작하는가?**
- Git Hook은 `.git/hooks` 디렉토리의 스크립트 파일에 의해 실행됩니다.
- 하지만, 레포지토리에 푸시할 수 없어 개발자 모두가 공유하기엔 어려움이 있습니다.
- 때문에, 코드 컴파일 시 Git Hook 경로를 `.git/hooks`에서 `.githooks`로 변경합니다.
- 상세 스타일은 `.editorconfig`에서 정의합니다.