Hooks Don't Travel
You add a pre-commit hook in .git/hooks/ and push. Colleagues' commits still skip it. Why?
pre-commit
.git/hooks/
Choose one answer
Hooks must be marked as executable in the remote repository's settings before they run for others.
Hooks only run on the remote server after a push.
pre-commit only runs for commits made in an IDE.
Hooks live in .git/, which isn't pushed or cloned.
.git/