Slide 7
Slide 7 text
TYPES OF GIT HOOKS
REPO HOOKS
These are hooks that are prepared and controlled on the local version of a GIT repository for
intercepting and modifying the behavior of events (i.e. push, commit, merge, rebase) for the benefit
of adding more functionality to how GIT processes the codebase. These hooks are used for linting,
spellchecking, copying and replacing files, running task runners, sending emails for patch review,
style sta dard adhere e, ru i g lo al u it tests a d uild (if you do ’t a t to use paid CI
(Continuous Integration) engines for testing and build).
WEB HOOKS
These are hooks that are prepared and controlled on remote GIT (GitHub). These hooks are used for
auto ati uploads to a li e e ser er, ssh-ing i to a re ote ser er e.t.c. They are also referred
to as HTTP callbacks.