Commit process
Commit Process

What is a hook ?

How can I use them ?

What are the different hooks ?

hook process
git commit -m "your message" --no-verify

pre-commit

prepare-commit

commit-msg

pre-rebase

pre-receive

Where can I find them ?

Global

git config --global init.templatedir '~/.gittemplates'
mkdir -p ~/.gittemplates/hooks
cp <repository>/.git/hooks/*.sample ~/.gittemplates/hooks/

Project

.git/hooks/<hook_name>