by shigemk2

当面は技術的なことしか書かない

hookってgitで追跡されるのか

githooks - Tracking changes to hooks in .git/hooks - Stack Overflow

Meta Magic: Git Hooks

Files in the .git/hooks directory are not part of the repository and so they are not tracked. A workaround is to have a git_hooks directory at the top of your repository like done in Arora and symlink .git/hooks to git_hooks whenever you clone. This way the hooks will be part of the project, under revision control and accessible to everyone.

.git/hooksディレクトリはレポジトリの一部ではないため、.git/hooks以下の変更は
追跡されないとのこと。