Git · Middle · Question 14 of 75

What is a Git hook?

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.

Further reading

Problem with a question

Git · Middle · question 14

Test yourself

Take the Git · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz