1 Git hooks are executable scripts you can place in $GIT_DIR/hooks directory to trigger action at certain points.
3 To install manually, run:
5 cd .git/hooks && ln -s ../../.git-hooks/* ./
7 When you using GIT for Windows, you need Windows links
8 Open a Dos-Box with admin rights then
10 FOR /F " usebackq " %i IN (`dir /b ..\..\.git-hooks`) DO mklink %i ..\..\.git-hooks\%i
12 There are two groups of these hooks: client side and server side.
14 The client-side hooks:
15 are for client operations such as committing and merging.
17 The server-side hooks:
18 are for Git server operations such as receiving pushed commits.
20 See Also [ http://git-scm.com/book/en/Customizing-Git-Git-Hooks ]