Git · Middle · Question 14 of 75
What is a Git hook?
- 1A link between two repositories on the server
- ✓Correct answer: A script Git runs on events like commit or push
- 3A comment attached to a line in code review
Explanation
Client-side hooks live in .git/hooks and aren't committed, which is why tools like Husky install them from the repo. Server-side hooks (or CI) enforce rules for everyone.